From b603e0dc4517c97e9f7da557c37cfa4cf3cf4353 Mon Sep 17 00:00:00 2001 From: Dmitriy Zaporozhets Date: Thu, 1 Mar 2012 22:56:24 +0200 Subject: [PATCH] Fixed spec --- spec/models/project_spec.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index f53b833f..28a500eb 100644 --- a/spec/models/project_spec.rb +++ b/spec/models/project_spec.rb @@ -103,8 +103,8 @@ describe Project do :author => Factory(:user) end - it { project.last_activity.should == @note } - it { project.last_activity_date.to_s.should == @note.created_at.to_s } + it { project.last_activity.should == Event.last } + it { project.last_activity_date.to_s.should == Event.last.created_at.to_s } end describe "fresh commits" do