aboutsummaryrefslogtreecommitdiffstats
path: root/activerecord/test/cases/store_test.rb
diff options
context:
space:
mode:
authorDavid Heinemeier Hansson <david@loudthinking.com>2011-10-25 17:22:52 -0500
committerDavid Heinemeier Hansson <david@loudthinking.com>2011-10-25 17:22:52 -0500
commit5daf07704ad21d885661216281ffc48b6ea6adfb (patch)
tree1e032663a6530334ec70408c1684800af404b582 /activerecord/test/cases/store_test.rb
parent85b64f98d100d37b3a232c315daa10fad37dccdc (diff)
downloadrails-5daf07704ad21d885661216281ffc48b6ea6adfb.tar.gz
rails-5daf07704ad21d885661216281ffc48b6ea6adfb.tar.bz2
rails-5daf07704ad21d885661216281ffc48b6ea6adfb.zip
Fix that changing a store should mark the store attribute as changed
Diffstat (limited to 'activerecord/test/cases/store_test.rb')
-rw-r--r--activerecord/test/cases/store_test.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/activerecord/test/cases/store_test.rb b/activerecord/test/cases/store_test.rb
index 3d056d93b6..3f7a965cfb 100644
--- a/activerecord/test/cases/store_test.rb
+++ b/activerecord/test/cases/store_test.rb
@@ -26,4 +26,9 @@ class StoreTest < ActiveRecord::TestCase
assert 'graeters', @john.reload.settings[:icecream]
end
+
+ test "updating the store will mark it as changed" do
+ @john.color = 'red'
+ assert @john.settings_changed?
+ end
end