diff options
author | randx <dmitriy.zaporozhets@gmail.com> | 2012-08-30 20:45:05 +0400 |
---|---|---|
committer | randx <dmitriy.zaporozhets@gmail.com> | 2012-08-30 20:45:05 +0400 |
commit | d246a68a242e28c106ab8916ccdc3ac2643b2d96 (patch) | |
tree | 8e9d7e06b296cfaa0401c1bf0f9ff802d3c4f60c /spec/models | |
parent | cd3d50caf2691116424a8df73939f095814c7ab5 (diff) |
fix project.last_activity spec
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/project_spec.rb | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index b947eeb290a..5add7ff88a9 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -141,7 +141,7 @@ describe Project do let(:last_event) { double } before do - project.stub(:events).and_return( [ double, double, last_event ] ) + project.stub_chain(:events, :order).and_return( [ double, double, last_event ] ) end it { project.last_activity.should == last_event } |