Skip to content

Commit

Permalink
adapt to changes in gix-validate
Browse files Browse the repository at this point in the history
  • Loading branch information
Byron committed Aug 9, 2024
1 parent 9683186 commit b9cf0f4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion gix-ref/tests/namespace/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ mod expand {
fn repeated_slashes_are_invalid() {
assert!(matches!(
gix_ref::namespace::expand("foo//bar").expect_err("empty invalid"),
gix_validate::reference::name::Error::RepeatedSlash
gix_validate::reference::name::Error::Tag(gix_validate::tag::name::Error::RepeatedSlash)
));
}
}
4 changes: 3 additions & 1 deletion gix-refspec/tests/parse/invalid.rs
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ fn empty() {
fn empty_component() {
assert!(matches!(
try_parse("refs/heads/test:refs/remotes//test", Operation::Fetch).unwrap_err(),
Error::ReferenceName(gix_validate::reference::name::Error::RepeatedSlash)
Error::ReferenceName(gix_validate::reference::name::Error::Tag(
gix_validate::tag::name::Error::RepeatedSlash
))
));
}

Expand Down

0 comments on commit b9cf0f4

Please sign in to comment.