aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/timestamp_test.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2012-03-22 21:04:32 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2012-03-22 21:04:32 -0700
commitea4e021dceea10ba1b98ac9b33e36cabf735ce82 (patch)
tree72974490c032f9a753f3fc41d335a049c8abbc05 /activerecord/test/cases/timestamp_test.rb
parentb714140f4df50d102e70b0151bbb3a09e470d61a (diff)
parentb332891b2ab4188e9d39737f4d214812afa3ce2c (diff)
downloadrails-ea4e021dceea10ba1b98ac9b33e36cabf735ce82.tar.gz
rails-ea4e021dceea10ba1b98ac9b33e36cabf735ce82.tar.bz2
rails-ea4e021dceea10ba1b98ac9b33e36cabf735ce82.zip
Merge pull request #5557 from carlosantoniodasilva/fix-build-3-2
Fix build for branch 3-2-stable
Diffstat (limited to 'activerecord/test/cases/timestamp_test.rb')
-rw-r--r--activerecord/test/cases/timestamp_test.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/activerecord/test/cases/timestamp_test.rb b/activerecord/test/cases/timestamp_test.rb
index 447aa29ffe..28543a5a3a 100644
--- a/activerecord/test/cases/timestamp_test.rb
+++ b/activerecord/test/cases/timestamp_test.rb
@@ -10,7 +10,7 @@ class TimestampTest < ActiveRecord::TestCase
fixtures :developers, :owners, :pets, :toys, :cars, :tasks
def setup
- @developer = Developer.first
+ @developer = Developer.order(:id).first
@developer.update_attribute(:updated_at, Time.now.prev_month)
@previously_updated_at = @developer.updated_at
end