diff options
author | Aaron Patterson <aaron.patterson@gmail.com> | 2018-06-26 10:24:01 -0700 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2018-06-26 10:24:01 -0700 |
commit | 259bf87560aa556734f4f8ab16a99c4237872b20 (patch) | |
tree | 7c7d45393505ba7b7df5b4d13ae68182c1a1cb2b /activerecord/test/cases | |
parent | 7d58fa87ef27712fc3dcd5a098d751a67563c9de (diff) | |
parent | 7c769234f6070e9dcc17f92d448e770358dd57e4 (diff) | |
download | rails-259bf87560aa556734f4f8ab16a99c4237872b20.tar.gz rails-259bf87560aa556734f4f8ab16a99c4237872b20.tar.bz2 rails-259bf87560aa556734f4f8ab16a99c4237872b20.zip |
Merge branch 'master' into homogeneous-allocation
* master:
Call initialize after allocate
Remove `ActiveSupport::Concern` from `ActiveRecord::Aggregations`
Add example for no_touching? in active_record/no_touching for api docs [ci skip]
Generate a new key for each service test
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/attribute_methods_test.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/activerecord/test/cases/attribute_methods_test.rb b/activerecord/test/cases/attribute_methods_test.rb index 434d32846c..0bfd46a522 100644 --- a/activerecord/test/cases/attribute_methods_test.rb +++ b/activerecord/test/cases/attribute_methods_test.rb @@ -163,19 +163,6 @@ class AttributeMethodsTest < ActiveRecord::TestCase assert_equal "10", keyboard.read_attribute_before_type_cast(:key_number) end - # Syck calls respond_to? before actually calling initialize. - test "respond_to? with an allocated object" do - klass = Class.new(ActiveRecord::Base) do - self.table_name = "topics" - end - - topic = klass.allocate - assert_not_respond_to topic, "nothingness" - assert_not_respond_to topic, :nothingness - assert_respond_to topic, "title" - assert_respond_to topic, :title - end - # IRB inspects the return value of MyModel.allocate. test "allocated objects can be inspected" do topic = Topic.allocate |