Skip to content

Commit 140edbb

Browse files
committed
Fixed test names to match existing tests
Also removed some duplicated tests that were introduced during a previous merge.
1 parent 119ada7 commit 140edbb

File tree

1 file changed

+8
-21
lines changed

1 file changed

+8
-21
lines changed

test/git-open.bats

Lines changed: 8 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -214,22 +214,6 @@ setup() {
214214
refute_output --partial "@"
215215
}
216216

217-
@test "bitbucket server" {
218-
# https://github.com/paulirish/git-open/pull/15
219-
git remote set-url origin "https://[email protected]/scm/ppp/test-repo.git"
220-
run ../git-open
221-
assert_output "https://bitbucket.example.com/projects/ppp/repos/test-repo"
222-
}
223-
224-
@test "bitbucket server branch" {
225-
# https://github.com/paulirish/git-open/pull/15
226-
git remote set-url origin "https://[email protected]/scm/ppp/test-repo.git"
227-
git checkout -B "bb-server"
228-
run ../git-open
229-
assert_output "https://bitbucket.example.com/projects/ppp/repos/test-repo/browse?at=bb-server"
230-
}
231-
232-
233217
@test "bitbucket: Bitbucket Server" {
234218
# https://github.com/paulirish/git-open/issues/77#issuecomment-309044010
235219
git remote set-url origin "https://[email protected]/scm/ppp/rrr.git"
@@ -270,19 +254,23 @@ setup() {
270254
}
271255

272256

273-
@test "bitbucket server with different root context" {
257+
@test "bitbucket: Bitbucket Server with different root context" {
274258
# https://github.com/paulirish/git-open/pull/15
275259
git remote set-url origin "https://[email protected]/git/scm/ppp/test-repo.git"
276260
run ../git-open
277-
assert_output "https://bitbucket.example.com/git/projects/ppp/repos/test-repo"
261+
assert_output "https://bitbucket.example.com/git/projects/ppp/repos/test-repo" ||
262+
assert_output "https://bitbucket.example.com/git/projects/ppp/repos/test-repo/?at=master" ||
263+
assert_output "https://bitbucket.example.com/git/projects/ppp/repos/test-repo/?at=refs%2Fheads%2Fmaster"
278264
}
279265

280266

281-
@test "bitbucket server with different root context with multiple parts" {
267+
@test "bitbucket: Bitbucket Server with different root context with multiple parts" {
282268
# https://github.com/paulirish/git-open/pull/15
283269
git remote set-url origin "https://[email protected]/really/long/root/context/scm/ppp/test-repo.git"
284270
run ../git-open
285-
assert_output "https://bitbucket.example.com/really/long/root/context/projects/ppp/repos/test-repo"
271+
assert_output "https://bitbucket.example.com/really/long/root/context/projects/ppp/repos/test-repo" ||
272+
assert_output "https://bitbucket.example.com/really/long/root/context/projects/ppp/repos/test-repo/?at=master" ||
273+
assert_output "https://bitbucket.example.com/really/long/root/context/projects/ppp/repos/test-repo/?at=refs%2Fheads%2Fmaster"
286274
}
287275

288276

@@ -294,7 +282,6 @@ setup() {
294282
assert_output "https://mybb.domain.com/root/context/projects/~first.last/repos/rrr/browse?at=develop" ||
295283
assert_output "https://mybb.domain.com/root/context/projects/~first.last/repos/rrr/browse?at=refs%2Fheads%2Fdevelop" ||
296284
assert_output "https://mybb.domain.com/root/context/projects/~first.last/repos/rrr/browse?at=refs/heads/develop"
297-
298285
}
299286

300287

0 commit comments

Comments
 (0)