diff --git a/test/git-open.bats b/test/git-open.bats index 887d6a7..9f7d1c8 100755 --- a/test/git-open.bats +++ b/test/git-open.bats @@ -248,6 +248,14 @@ setup() { assert_output "http://github.com/user/repo" } +@test "basic: open.default.remote configuration" { + git remote set-url origin "git@github.com:paulirish/git-open.git" + git remote add upstream "git@github.com:upstreamorg/repo.git" + git config --local open.default.remote upstream + run ../git-open + assert_output "https://github.com/upstreamorg/repo" +} + ## ## SSH config ##