aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord
diff options
context:
space:
mode:
authorRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-03 18:20:30 -0300
committerRafael Mendonça França <rafaelmfranca@gmail.com>2015-01-04 11:58:42 -0300
commit37175a24bd508e2983247ec5d011d57df836c743 (patch)
treef2fd77cb880f81f7dce3ce1e20b8c8bea97dd155 /activerecord
parent4be859f0fdf7b3059a28d03c279f03f5938efc80 (diff)
downloadrails-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.rb12
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!'