Commit c3363a9a049723716bc842574099acfbdca72bf9

Use stub (w/ :id => 1) instead of mock to eliminate warning on #id.

Commit diff

spec/controllers/browse_controller_spec.rb

 
6565
6666 describe "#commit" do
6767 before(:each) do
68 @commit_mock = mock("commit")
68 @commit_mock = stub("commit", :id => 1)
6969 @diff_mock = mock("diff mock")
7070 @commit_mock.should_receive(:diffs).and_return(@diff_mock)
7171 @git.should_receive(:commit).with("a"*40).and_return(@commit_mock)
toggle raw diff