Skip to content

Commit

Permalink
Fix bitbucket tests
Browse files Browse the repository at this point in the history
  • Loading branch information
derimagia committed Aug 21, 2020
1 parent c908a50 commit ca8b234
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions test/git-open.bats
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ setup() {
git commit -m a
git checkout mytag
run ../git-open
assert_output "https://bitbucket.org/paulirish/crbug-extension/src?at=mytag"
assert_output "https://bitbucket.org/paulirish/crbug-extension/src/mytag"
}

@test "bitbucket: non-origin remote" {
Expand All @@ -376,7 +376,7 @@ setup() {
git checkout -B "devel"
run ../git-open
refute_output --partial "//kisom"
assert_output "https://bitbucket.org/kisom/consbri/src?at=devel"
assert_output "https://bitbucket.org/kisom/consbri/src/devel"
}

@test "bitbucket: open source view with a slash/branch" {
Expand All @@ -385,9 +385,7 @@ setup() {
git remote set-url origin "https://bitbucket.org/guyzmo/git-repo.git"
git checkout -B "bugfix/conftest_fix"
run ../git-open
assert_output --partial "https://bitbucket.org/guyzmo/git-repo/src"
# BB appears to be fine with both literal or URL-encoded forward slash
assert_output --partial "?at=bugfix/conftest_fix"
assert_output "https://bitbucket.org/guyzmo/git-repo/src/bugfix/conftest_fix"
}

@test "bitbucket: ssh:// clone urls" {
Expand Down

0 comments on commit ca8b234

Please sign in to comment.