diff options
author | Godfrey Chan <godfreykfc@gmail.com> | 2014-07-16 11:32:42 -0700 |
---|---|---|
committer | Godfrey Chan <godfreykfc@gmail.com> | 2014-07-16 11:32:42 -0700 |
commit | a00f547d2b83f95d169050a2b25afa196d0a9205 (patch) | |
tree | bf62ac28f3c36c901d55bc5a96702a34aac0e7e3 /activerecord/test | |
parent | d4df7ce7b356835208141e6ac8e5ffb09ece8401 (diff) | |
parent | dd1ec62578db6f7a03d1c07546b00a008a0c629d (diff) | |
download | rails-a00f547d2b83f95d169050a2b25afa196d0a9205.tar.gz rails-a00f547d2b83f95d169050a2b25afa196d0a9205.tar.bz2 rails-a00f547d2b83f95d169050a2b25afa196d0a9205.zip |
Merge pull request #15718 from chancancode/regression_from_15694
Fixed a regression introduced in 84cf156
Diffstat (limited to 'activerecord/test')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index 2048e0d5ad..ab67cf4085 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -143,7 +143,11 @@ class AttributeMethodsTest < ActiveRecord::TestCase # Syck calls respond_to? before actually calling initialize def test_respond_to_with_allocated_object - topic = Topic.allocate + klass = Class.new(ActiveRecord::Base) do + self.table_name = 'topics' + end + + topic = klass.allocate assert !topic.respond_to?("nothingness") assert !topic.respond_to?(:nothingness) assert_respond_to topic, "title" |