diff options
author | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-03 18:20:30 -0300 |
---|---|---|
committer | Rafael Mendonça França <rafaelmfranca@gmail.com> | 2015-01-04 11:58:42 -0300 |
commit | 37175a24bd508e2983247ec5d011d57df836c743 (patch) | |
tree | f2fd77cb880f81f7dce3ce1e20b8c8bea97dd155 /activerecord | |
parent | 4be859f0fdf7b3059a28d03c279f03f5938efc80 (diff) | |
download | rails-37175a24bd508e2983247ec5d011d57df836c743.tar.gz rails-37175a24bd508e2983247ec5d011d57df836c743.tar.bz2 rails-37175a24bd508e2983247ec5d011d57df836c743.zip |
Remove deprecated `ActiveModel::Dirty#reset_#{attribute}` and `ActiveModel::Dirty#reset_changes`.
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/dirty_test.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/activerecord/test/cases/dirty_test.rb b/activerecord/test/cases/dirty_test.rb index 98cf60a8c4..5b71bd7e67 100644 --- a/activerecord/test/cases/dirty_test.rb +++ b/activerecord/test/cases/dirty_test.rb @@ -165,18 +165,6 @@ class DirtyTest < ActiveRecord::TestCase assert_equal parrot.name_change, parrot.title_change end - def test_reset_attribute! - pirate = Pirate.create!(:catchphrase => 'Yar!') - pirate.catchphrase = 'Ahoy!' - - assert_deprecated do - pirate.reset_catchphrase! - end - assert_equal "Yar!", pirate.catchphrase - assert_equal Hash.new, pirate.changes - assert !pirate.catchphrase_changed? - end - def test_restore_attribute! pirate = Pirate.create!(:catchphrase => 'Yar!') pirate.catchphrase = 'Ahoy!' |