Commit d246a68a242e28c106ab8916ccdc3ac2643b2d96
1 parent
cd3d50ca
Exists in
master
and in
4 other branches
fix project.last_activity spec
Showing
2 changed files
with
2 additions
and
2 deletions
Show diff stats
app/models/project.rb
spec/models/project_spec.rb
... | ... | @@ -141,7 +141,7 @@ describe Project do |
141 | 141 | let(:last_event) { double } |
142 | 142 | |
143 | 143 | before do |
144 | - project.stub(:events).and_return( [ double, double, last_event ] ) | |
144 | + project.stub_chain(:events, :order).and_return( [ double, double, last_event ] ) | |
145 | 145 | end |
146 | 146 | |
147 | 147 | it { project.last_activity.should == last_event } | ... | ... |