From bed30d5055566e868a416fd4b7fc5f5afd6167cb Mon Sep 17 00:00:00 2001 From: Rafael Martins Date: Thu, 23 Feb 2012 14:18:43 -0200 Subject: [PATCH] Changed more_recent test to check for updated_at instead of created_at --- test/unit/profile_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/profile_test.rb b/test/unit/profile_test.rb index 1b1e4df..b2d25c6 100644 --- a/test/unit/profile_test.rb +++ b/test/unit/profile_test.rb @@ -1554,12 +1554,12 @@ class ProfileTest < ActiveSupport::TestCase should 'find more recent profile' do Profile.delete_all - p1 = fast_create(Profile, :created_at => 4.days.ago) - p2 = fast_create(Profile, :created_at => Time.now) - p3 = fast_create(Profile, :created_at => 2.days.ago) + p1 = fast_create(Profile, :updated_at => 4.days.ago) + p2 = fast_create(Profile, :updated_at => Time.now) + p3 = fast_create(Profile, :updated_at => 2.days.ago) assert_equal [p2,p3,p1] , Profile.more_recent - p4 = fast_create(Profile, :created_at => 3.days.ago) + p4 = fast_create(Profile, :updated_at => 3.days.ago) assert_equal [p2,p3,p4,p1] , Profile.more_recent end -- libgit2 0.21.2