aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/attribute_methods
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2013-07-02 15:43:29 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2013-07-02 15:43:29 -0700
commit6e43fcb33365c66359e6363abdc2d108aef9fd67 (patch)
tree9c039f7cb6209c3f87d79116dba2e9684068ddda /activerecord/test/cases/attribute_methods
parentb670d799e4f7c1ddc235fbeec1ca1806a8b5d6ff (diff)
downloadrails-6e43fcb33365c66359e6363abdc2d108aef9fd67.tar.gz
rails-6e43fcb33365c66359e6363abdc2d108aef9fd67.tar.bz2
rails-6e43fcb33365c66359e6363abdc2d108aef9fd67.zip
remove private attribute reader
Diffstat (limited to 'activerecord/test/cases/attribute_methods')
-rw-r--r--activerecord/test/cases/attribute_methods/read_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/attribute_methods/read_test.rb b/activerecord/test/cases/attribute_methods/read_test.rb
index 8d8ff2f952..6dbebf4b6f 100644
--- a/activerecord/test/cases/attribute_methods/read_test.rb
+++ b/activerecord/test/cases/attribute_methods/read_test.rb
@@ -56,9 +56,9 @@ module ActiveRecord
end
def test_attribute_methods_generated?
- assert(!@klass.attribute_methods_generated?, 'attribute_methods_generated?')
+ assert_not @klass.method_defined?(:one)
@klass.define_attribute_methods
- assert(@klass.attribute_methods_generated?, 'attribute_methods_generated?')
+ assert @klass.method_defined?(:one)
end
end
end