diff options
author | Jeremy Kemper <jeremy@bitsweat.net> | 2011-10-13 16:11:00 -0700 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2011-10-13 16:11:00 -0700 |
commit | 8cbe826958f78e5de5723bcbd3c90ea381a79e48 (patch) | |
tree | 811c8995ff36cd04cac830c3cdcc61348d55aa0a /activerecord/test/cases | |
parent | 0a9b6de4d255654a769bc5e874730a282c1ee370 (diff) | |
download | rails-8cbe826958f78e5de5723bcbd3c90ea381a79e48.tar.gz rails-8cbe826958f78e5de5723bcbd3c90ea381a79e48.tar.bz2 rails-8cbe826958f78e5de5723bcbd3c90ea381a79e48.zip |
Rails 4 is just around the corner. Stuck with 1.8 until then.
Diffstat (limited to 'activerecord/test/cases')
-rw-r--r-- | activerecord/test/cases/store_test.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/activerecord/test/cases/store_test.rb b/activerecord/test/cases/store_test.rb index 3d056d93b6..fb77220875 100644 --- a/activerecord/test/cases/store_test.rb +++ b/activerecord/test/cases/store_test.rb @@ -4,9 +4,9 @@ require 'models/admin/user' class StoreTest < ActiveRecord::TestCase setup do - @john = Admin::User.create(name: 'John Doe', color: 'black') + @john = Admin::User.create(:name => 'John Doe', :color => 'black') end - + test "reading store attributes through accessors" do assert_equal 'black', @john.color assert_nil @john.homepage @@ -19,7 +19,7 @@ class StoreTest < ActiveRecord::TestCase assert_equal 'red', @john.color assert_equal '37signals.com', @john.homepage end - + test "accessing attributes not exposed by accessors" do @john.settings[:icecream] = 'graeters' @john.save |