aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test
diff options
context:
space:
mode:
authorJon Leighton <j@jonathanleighton.com>2011-04-15 01:44:27 +0100
committerJon Leighton <j@jonathanleighton.com>2011-04-15 01:44:27 +0100
commitbbe0a507f287c20ab4ae8a244fbfc810665deda5 (patch)
tree028c75870bd593b3c3ae5fe8ead29e2a315a4937 /activerecord/test
parent3d44e4575825b30dc2407e3c421af23369224a34 (diff)
downloadrails-bbe0a507f287c20ab4ae8a244fbfc810665deda5.tar.gz
rails-bbe0a507f287c20ab4ae8a244fbfc810665deda5.tar.bz2
rails-bbe0a507f287c20ab4ae8a244fbfc810665deda5.zip
Remove unnecessary code from define_read_method and add assertion to make sure the underscored version is actually generated
Diffstat (limited to 'activerecord/test')
-rw-r--r--activerecord/test/cases/attribute_methods_test.rb1
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb
index b898c003bd..899166d129 100644
--- a/activerecord/test/cases/attribute_methods_test.rb
+++ b/activerecord/test/cases/attribute_methods_test.rb
@@ -77,6 +77,7 @@ 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