Skip to content

Commit

Permalink
Added failing test.
Browse files Browse the repository at this point in the history
  • Loading branch information
dogeth authored and drnic committed May 6, 2010
1 parent c0b5357 commit 73e56e5
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions spec/commands/command_fork_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,13 @@
stdout.should == "Giving GitHub a moment to create the fork...\n"
end
end

specify "fork should die if token or user isn't set" do
running :fork, "defunkt", "github-gem" do
setup_github_token :user => nil, :token => nil
@command.should_receive(:die).with("Setup your github user and token before running a fork").and_return { raise "Died" }
self.should raise_error(RuntimeError)
end
end

end

0 comments on commit 73e56e5

Please sign in to comment.