Skip to content

Commit

Permalink
fix test that fails if current dir is not "hub"
Browse files Browse the repository at this point in the history
The test fails, for example, if the repo is checked out in a differently
named directory and the test suite is run.
  • Loading branch information
mislav authored and defunkt committed Jul 24, 2010
1 parent 4178db9 commit 9801b46
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion test/hub_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -354,9 +354,10 @@ def test_cherry_pick_github_notation_with_remote_add
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
Expand Down

0 comments on commit 9801b46

Please sign in to comment.