@@ -112,12 +112,28 @@ setup() {
112
112
assert_output --partial " //?at=master"
113
113
}
114
114
115
- @test " bitbucket: branch" {
116
- git remote set-url origin
" https://[email protected] /malb/lwe-estimator.git"
117
- git checkout -B " new-bkw"
115
+ @test " bitbucket: open source view" {
116
+ # https://github.com/paulirish/git-open/pull/26
117
+ git remote set-url origin " https://bitbucket.org/kisom/consbri.git"
118
+ git checkout -B " devel"
118
119
run ../git-open
119
- assert_output --partial " https://bitbucket.org/malb/lwe-estimator/src/"
120
- assert_output --partial " ?at=new-bkw"
120
+ assert_output --partial " https://bitbucket.org/kisom/consbri/src/"
121
+ assert_output --partial " ?at=devel"
122
+
123
+ # FIXME: deal with the double slash in the URL
124
+ skip # FWIW, above assertions are still tested ;)
125
+ refute_output --partial " //"
126
+ }
127
+
128
+ @test " bitbucket: open source view with a slash/branch" {
129
+ # https://github.com/paulirish/git-open/pull/26
130
+ # see https://github.com/paulirish/git-open/issues/80 for feat/branchname issues
131
+ git remote set-url origin " https://bitbucket.org/guyzmo/git-repo.git"
132
+ git checkout -B " bugfix/conftest_fix"
133
+ run ../git-open
134
+ assert_output --partial " https://bitbucket.org/guyzmo/git-repo/src/"
135
+ # BB appears to be fine with both literal or URL-encoded forward slash
136
+ assert_output --partial " ?at=bugfix/conftest_fix"
121
137
}
122
138
123
139
@test " bitbucket: ssh:// clone urls" {
@@ -164,7 +180,10 @@ setup() {
164
180
run ../git-open
165
181
assert_output --partial " https://gitlab.domain.com/"
166
182
assert_output --partial " /user/repo/"
167
- # assert_output "https://gitlab.domain.com//user/repo/" # TODO fix double slash
183
+
184
+ # FIXME: deal with the double slash in the URL
185
+ skip
186
+ refute_output --partial " //"
168
187
}
169
188
170
189
0 commit comments