spec/commit_spec.rb in gitmine-0.1.3 vs spec/commit_spec.rb in gitmine-0.1.4.pre
- old
+ new
@@ -28,9 +28,10 @@
commit.issue.should == issue
end
it "should memoize issue" do
Gitmine::Issue.should_receive(:get_for_commit).with("Commit message") { issue }.once
- commit.issue.should == issue
- commit.issue.should == issue
+ 2.times do
+ commit.issue.should == issue
+ end
end
end