Skip to content

Commit

Permalink
Fixed a broken spec
Browse files Browse the repository at this point in the history
  • Loading branch information
keithpitt committed Jan 13, 2011
1 parent e939395 commit 249f495
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions spec/commands/command_fork_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
setup_remote "origin", :user => "defunkt", :project => "github-gem"
setup_user_and_branch
@command.should_receive(:sh).with("curl -F 'login=drnic' -F 'token=MY_GITHUB_TOKEN' https://github.com/defunkt/github-gem/fork")
@command.should_receive(:git, "config remote.origin.url git@github.com/drnic/github-gem.git")
@command.should_receive(:git).with("config remote.origin.url git@github.com:drnic/github-gem.git")
stdout.should == "defunkt/github-gem forked\n"
end
end
Expand All @@ -28,7 +28,7 @@
running :fork, "defunkt/github-gem" do
setup_github_token
@command.should_receive(:sh).with("curl -F 'login=drnic' -F 'token=MY_GITHUB_TOKEN' https://github.com/defunkt/github-gem/fork")
@command.should_receive(:git_exec, "clone git://github.com/defunkt/github-gem.git")
@command.should_receive(:git_exec).with("clone git@github.com:drnic/github-gem.git")
stdout.should == "Giving GitHub a moment to create the fork...\n"
end
end
Expand All @@ -37,8 +37,8 @@
running :fork, "defunkt", "github-gem" do
setup_github_token
@command.should_receive("sh").with("curl -F 'login=drnic' -F 'token=MY_GITHUB_TOKEN' https://github.com/defunkt/github-gem/fork")
@command.should_receive(:git_exec, "clone git://github.com/defunkt/github-gem.git")
@command.should_receive(:git_exec).with("clone git@github.com:drnic/github-gem.git")
stdout.should == "Giving GitHub a moment to create the fork...\n"
end
end
end
end

0 comments on commit 249f495

Please sign in to comment.