test: first assertions

This commit is contained in:
Paul Irish 2017-06-15 14:33:36 -07:00
parent 37861f6296
commit 292c640505

24
test/git-open.bats Normal file
View 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
}