提交 9801b465 编写于 作者: M Mislav Marohnić 提交者: Chris Wanstrath

fix test that fails if current dir is not "hub"

The test fails, for example, if the repo is checked out in a differently
named directory and the test suite is run.
上级 4178db9c
......@@ -354,9 +354,10 @@ class HubTest < Test::Unit::TestCase
end
def test_init
dirname = File.basename(Dir.pwd)
h = Hub("init -g")
assert_equal "git init", h.command
assert_equal "git remote add origin git@github.com:tpw/hub.git", h.after
assert_equal "git remote add origin git@github.com:tpw/#{dirname}.git", h.after
end
def test_init_no_login
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册