diff --git a/spec/models/project_spec.rb b/spec/models/project_spec.rb index f53b833f387e7125d947070b239ddcabebedf503..28a500ebed6b26d5b33a9d7db904b4cbc1c41a5a 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