mirror of
https://github.com/paulirish/git-open.git
synced 2026-09-10 07:26:15 -04:00
test: first assertions
This commit is contained in:
parent
37861f6296
commit
292c640505
24
test/git-open.bats
Normal file
24
test/git-open.bats
Normal file
|
|
@ -0,0 +1,24 @@
|
|||
#!/usr/bin/env bats
|
||||
|
||||
load 'test_helper/bats-support/load'
|
||||
load 'test_helper/bats-assert/load'
|
||||
|
||||
setup() {
|
||||
git checkout --force master
|
||||
}
|
||||
|
||||
@test "git-open gh basic" {
|
||||
run git-open
|
||||
assert_output 'https://github.com/paulirish/git-open/'
|
||||
}
|
||||
|
||||
@test "git-open gh branch" {
|
||||
git checkout --force -b mybranch
|
||||
run git-open
|
||||
assert_output 'https://github.com/paulirish/git-open/tree/mybranch'
|
||||
}
|
||||
|
||||
teardown() {
|
||||
git branch -D mybranch
|
||||
git checkout --force master
|
||||
}
|
||||
Loading…
Reference in a new issue