diff options
-rw-r--r-- | activerecord/test/cases/dirty_test.rb | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/activerecord/test/cases/dirty_test.rb b/activerecord/test/cases/dirty_test.rb index 128c80e9cc..9d3c0e3900 100644 --- a/activerecord/test/cases/dirty_test.rb +++ b/activerecord/test/cases/dirty_test.rb @@ -89,11 +89,8 @@ class DirtyTest < ActiveRecord::TestCase target = Class.new(ActiveRecord::Base) target.table_name = 'pirates' - pirate = target.create - p pirate.created_on + pirate = target.create! pirate.created_on = pirate.created_on - p pirate.created_on - p pirate.changes assert !pirate.created_on_changed? end end |