diff options
author | Jon Leighton <j@jonathanleighton.com> | 2011-12-14 15:31:02 +0000 |
---|---|---|
committer | Jon Leighton <j@jonathanleighton.com> | 2011-12-14 15:31:12 +0000 |
commit | 19bea9f1bd03b4601bf4c38539bff993d3eebc39 (patch) | |
tree | 8ecc0ccf00a9493d542d66de5a641654748e61b6 /activerecord/test/cases/attribute_methods_test.rb | |
parent | 384a60a16c7b881ed22d29c0babcdd2cb84f0790 (diff) | |
download | rails-19bea9f1bd03b4601bf4c38539bff993d3eebc39.tar.gz rails-19bea9f1bd03b4601bf4c38539bff993d3eebc39.tar.bz2 rails-19bea9f1bd03b4601bf4c38539bff993d3eebc39.zip |
Stop the build asploding on 1.8.7
Diffstat (limited to 'activerecord/test/cases/attribute_methods_test.rb')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index cec5822acb..39e58559b0 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -707,6 +707,10 @@ class AttributeMethodsTest < ActiveRecord::TestCase Topic.undefine_attribute_methods end + def test_read_attribute_with_nil_should_not_asplode + assert_equal nil, Topic.new.read_attribute(nil) + end + private def cached_columns @cached_columns ||= time_related_columns_on_topic.map(&:name) |