aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases
diff options
context:
space:
mode:
authorSergey Nartimov <just.lest@gmail.com>2011-12-21 20:44:16 +0300
committerSergey Nartimov <just.lest@gmail.com>2011-12-21 21:06:03 +0300
commit9f7d3c51b35f1568df07d949e0d0a55b72b3c514 (patch)
tree5c4695651560bf44eb7e64445e5fbaf045a59d33 /activerecord/test/cases
parent52c214f7a388d1bf5c43be96c0495259d54f0f0c (diff)
downloadrails-9f7d3c51b35f1568df07d949e0d0a55b72b3c514.tar.gz
rails-9f7d3c51b35f1568df07d949e0d0a55b72b3c514.tar.bz2
rails-9f7d3c51b35f1568df07d949e0d0a55b72b3c514.zip
remove deprecated underscore versions of attribute methods
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb8
1 files changed, 0 insertions, 8 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index 5e9f8028e9..8e509a9792 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -102,7 +102,6 @@ class AttributeMethodsTest < ActiveRecord::TestCase
def test_respond_to?
topic = Topic.find(1)
assert_respond_to topic, "title"
- assert_respond_to topic, "_title"
assert_respond_to topic, "title?"
assert_respond_to topic, "title="
assert_respond_to topic, :title
@@ -114,19 +113,12 @@ class AttributeMethodsTest < ActiveRecord::TestCase
assert !topic.respond_to?(:nothingness)
end
- def test_deprecated_underscore_method
- topic = Topic.find(1)
- assert_equal topic.title, assert_deprecated { topic._title }
- end
-
def test_respond_to_with_custom_primary_key
keyboard = Keyboard.create
assert_not_nil keyboard.key_number
assert_equal keyboard.key_number, keyboard.id
assert keyboard.respond_to?('key_number')
- assert keyboard.respond_to?('_key_number')
assert keyboard.respond_to?('id')
- assert keyboard.respond_to?('_id')
end
# Syck calls respond_to? before actually calling initialize