Permalink
Browse files

add failing test for branches with slashes in name

  • Loading branch information...
1 parent 4072568 commit cb03a5f44094fbd06ef9db53a7ac97ee12f37361 @maxim maxim committed with mislav Dec 11, 2011
Showing with 8 additions and 0 deletions.
  1. +8 −0 test/hub_test.rb
View
@@ -1084,6 +1084,14 @@ def test_hub_browse_on_branch
"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"

0 comments on commit cb03a5f

Please sign in to comment.