Skip to content

Commit ca8b234

Browse files
committed
Fix bitbucket tests
1 parent c908a50 commit ca8b234

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

test/git-open.bats

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -360,7 +360,7 @@ setup() {
360360
git commit -m a
361361
git checkout mytag
362362
run ../git-open
363-
assert_output "https://bitbucket.org/paulirish/crbug-extension/src?at=mytag"
363+
assert_output "https://bitbucket.org/paulirish/crbug-extension/src/mytag"
364364
}
365365

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

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

393391
@test "bitbucket: ssh:// clone urls" {

0 commit comments

Comments
 (0)