diff options
author | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-11 09:13:50 -0200 |
---|---|---|
committer | Carlos Antonio da Silva <carlosantoniodasilva@gmail.com> | 2012-12-11 09:13:56 -0200 |
commit | 454f1127056a47cadaba1725694f29d3007ab094 (patch) | |
tree | c3b5533b427bc4079ef869cb8a189ae7030730c8 | |
parent | 59240363e319b22f2ca0b2170da6adaf7cfccd4d (diff) | |
download | rails-454f1127056a47cadaba1725694f29d3007ab094.tar.gz rails-454f1127056a47cadaba1725694f29d3007ab094.tar.bz2 rails-454f1127056a47cadaba1725694f29d3007ab094.zip |
Use 1.8 hash style :bomb:
-rw-r--r-- | activerecord/test/cases/base_test.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/activerecord/test/cases/base_test.rb b/activerecord/test/cases/base_test.rb index 70da8b7cd0..efcfe3f612 100644 --- a/activerecord/test/cases/base_test.rb +++ b/activerecord/test/cases/base_test.rb @@ -1447,7 +1447,7 @@ class BasicsTest < ActiveRecord::TestCase Topic.serialize(:content, MyObject) myobj = MyObject.new('value1', 'value2') - topic = Topic.create(content: myobj) + topic = Topic.create(:content => myobj) assert_equal(myobj, Topic.select(:content).find(topic.id).content) assert_raise(ActiveModel::MissingAttributeError) { Topic.select(:id).find(topic.id).content } @@ -2178,7 +2178,7 @@ class BasicsTest < ActiveRecord::TestCase old_timestamp_format = Car.cache_timestamp_format Car.cache_timestamp_format = :nsec car = Car.create - Bulb.create(car: car) + Bulb.create(:car => car) key = car.cache_key car.bulb.touch |