aboutsummaryrefslogtreecommitdiffstats
path: root/activemodel/test
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-06-27 17:48:14 -0700
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2013-06-27 17:48:14 -0700
commit9a26d94d60d626f3d4d71909455fce1ef2b1a99c (patch)
treec02b4dad10e501702785832281a7f65270670e26 /activemodel/test
parentca81874b3b3b2cdbfc4e80f9c380a3e06607d98c (diff)
parente63ba910ae8322672d69ceb9f5aae3893d80b959 (diff)
downloadrails-9a26d94d60d626f3d4d71909455fce1ef2b1a99c.tar.gz
rails-9a26d94d60d626f3d4d71909455fce1ef2b1a99c.tar.bz2
rails-9a26d94d60d626f3d4d71909455fce1ef2b1a99c.zip
Merge pull request #11150 from jetthoughts/remove_depr_message_for_attribute_method_matcher
Remove deprecation warning from AttributeMethodsMatcher
Diffstat (limited to 'activemodel/test')
-rw-r--r--activemodel/test/cases/attribute_methods_test.rb11
1 files changed, 0 insertions, 11 deletions
diff --git a/activemodel/test/cases/attribute_methods_test.rb b/activemodel/test/cases/attribute_methods_test.rb
index 25eb4860e3..e9cb5ccc96 100644
--- a/activemodel/test/cases/attribute_methods_test.rb
+++ b/activemodel/test/cases/attribute_methods_test.rb
@@ -202,17 +202,6 @@ class AttributeMethodsTest < ActiveModel::TestCase
assert_equal 'bar', m.foo_test
end
- test 'explicitly specifying an empty prefix/suffix is deprecated' do
- klass = Class.new(ModelWithAttributes)
-
- assert_deprecated { klass.attribute_method_suffix '' }
- assert_deprecated { klass.attribute_method_prefix '' }
-
- klass.define_attribute_methods(:foo)
-
- assert_equal 'value of foo', klass.new.foo
- end
-
test 'should not interfere with method_missing if the attr has a private/protected method' do
m = ModelWithAttributes2.new
m.attributes = { 'private_method' => '<3', 'protected_method' => 'O_o' }