提交 cb03a5f4 编写于 作者: M Maxim Chernyak 提交者: Mislav Marohnić

add failing test for branches with slashes in name

上级 4072568c
......@@ -1084,6 +1084,14 @@ config
"open https://github.com/mislav/hub/commits/experimental"
end
def test_hub_browse_on_complex_branch
stub_branch('refs/heads/feature/foo')
stub_tracking('feature/foo', 'mislav', 'feature/bar')
assert_command 'browse',
'open https://github.com/mislav/hub/tree/feature/bar'
end
def test_hub_browse_current
assert_command "browse", "open https://github.com/defunkt/hub"
assert_command "browse --", "open https://github.com/defunkt/hub"
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册