aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/store_test.rb
diff options
context:
space:
mode:
authorYves Senn <yves.senn@gmail.com>2014-06-01 18:55:55 +0200
committerYves Senn <yves.senn@gmail.com>2014-06-01 18:55:55 +0200
commit260c384bdb539265b31d3937df48e528acb50800 (patch)
tree6012932fd76e47f10d077fdb60ff440f9fe824c2 /activerecord/test/cases/store_test.rb
parent75f75a8719e8dbe8ce14874ae4bd1eac0eee67ab (diff)
parent93734629a33591486b76e3b9884ea37650934eef (diff)
downloadrails-260c384bdb539265b31d3937df48e528acb50800.tar.gz
rails-260c384bdb539265b31d3937df48e528acb50800.tar.bz2
rails-260c384bdb539265b31d3937df48e528acb50800.zip
Merge pull request #15432 from sgrif/sg-coder-type-casting
Don't change values in `@raw_attributes` during serialization
Diffstat (limited to 'activerecord/test/cases/store_test.rb')
-rw-r--r--activerecord/test/cases/store_test.rb14
1 files changed, 0 insertions, 14 deletions
diff --git a/activerecord/test/cases/store_test.rb b/activerecord/test/cases/store_test.rb
index 6a34c55011..f841b1c983 100644
--- a/activerecord/test/cases/store_test.rb
+++ b/activerecord/test/cases/store_test.rb
@@ -183,20 +183,6 @@ class StoreTest < ActiveRecord::TestCase
assert_equal({}, @john.params)
end
- test "attributes_for_coder should return stored fields already serialized" do
- attributes = {
- "id" => @john.id,
- "name"=> @john.name,
- "settings" => "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\ncolor: black\n",
- "preferences" => "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess\nremember_login: true\n",
- "json_data" => "{\"height\":\"tall\"}", "json_data_empty"=>"{\"is_a_good_guy\":true}",
- "params" => "--- !ruby/hash:ActiveSupport::HashWithIndifferentAccess {}\n",
- "account_id"=> @john.account_id
- }
-
- assert_equal attributes, @john.attributes_for_coder
- end
-
test "dump, load and dump again a model" do
dumped = YAML.dump(@john)
loaded = YAML.load(dumped)