aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/store_test.rb
diff options
context:
space:
mode:
authorThales Oliveira <oliveiraethales@gmail.com>2014-01-05 20:55:02 -0200
committerThales Oliveira <oliveiraethales@gmail.com>2014-01-06 11:36:19 -0200
commit901a0c8b4a3b1de8ff1ec8feb4b67f727c07dc8b (patch)
tree70a52311aec61c1fb8f9233009cbe43439eca122 /activerecord/test/cases/store_test.rb
parent3a48b83e5eec62a5d2bfab1a118c24b45345388c (diff)
downloadrails-901a0c8b4a3b1de8ff1ec8feb4b67f727c07dc8b.tar.gz
rails-901a0c8b4a3b1de8ff1ec8feb4b67f727c07dc8b.tar.bz2
rails-901a0c8b4a3b1de8ff1ec8feb4b67f727c07dc8b.zip
Fix: ActiveRecord::Store TypeError conversion when using YAML coder
Renaming the test accordingly to its behaviour Adding 'Fixes' statement to changelog Improving tests legibility & changelog Undoing mistakenly removed empty line & further improving changelog
Diffstat (limited to 'activerecord/test/cases/store_test.rb')
-rw-r--r--activerecord/test/cases/store_test.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/activerecord/test/cases/store_test.rb b/activerecord/test/cases/store_test.rb
index 0c9f7ccd55..6f632b4d8d 100644
--- a/activerecord/test/cases/store_test.rb
+++ b/activerecord/test/cases/store_test.rb
@@ -162,4 +162,8 @@ class StoreTest < ActiveRecord::TestCase
assert_equal [:color], first_model.stored_attributes[:data]
assert_equal [:width, :height], second_model.stored_attributes[:data]
end
+
+ test "YAML coder initializes the store when a Nil value is given" do
+ assert_equal({}, @john.params)
+ end
end