diff options
author | Rafael França <rafaelmfranca@gmail.com> | 2016-02-17 01:47:59 -0200 |
---|---|---|
committer | Rafael França <rafaelmfranca@gmail.com> | 2016-02-17 01:47:59 -0200 |
commit | 5a3dd16f01429bdc06411818ea713e9e99678293 (patch) | |
tree | 407c7f34063cd457fb9b70713313cbe344e4bc1e /activerecord | |
parent | ecc8f283cfc1b002b5141c527a827e74b770f2f0 (diff) | |
parent | 72eee06b8861d1e091e03772b0a52051453165bb (diff) | |
download | rails-5a3dd16f01429bdc06411818ea713e9e99678293.tar.gz rails-5a3dd16f01429bdc06411818ea713e9e99678293.tar.bz2 rails-5a3dd16f01429bdc06411818ea713e9e99678293.zip |
Merge pull request #23713 from collectiveidea/add-store-attributes-test
Test parent local_stored_attributes isn't modified
Diffstat (limited to 'activerecord')
-rw-r--r-- | activerecord/test/cases/store_test.rb | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/activerecord/test/cases/store_test.rb b/activerecord/test/cases/store_test.rb index ab63f5825c..bce86875e1 100644 --- a/activerecord/test/cases/store_test.rb +++ b/activerecord/test/cases/store_test.rb @@ -177,6 +177,7 @@ class StoreTest < ActiveRecord::TestCase assert_equal [:color], first_model.stored_attributes[:data] assert_equal [:color, :width, :height], second_model.stored_attributes[:data] assert_equal [:color, :area, :volume], third_model.stored_attributes[:data] + assert_equal [:color], first_model.stored_attributes[:data] end test "YAML coder initializes the store when a Nil value is given" do |