aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-11 09:13:50 -0200
committerCarlos Antonio da Silva <carlosantoniodasilva@gmail.com>2012-12-11 09:13:56 -0200
commit454f1127056a47cadaba1725694f29d3007ab094 (patch)
treec3b5533b427bc4079ef869cb8a189ae7030730c8
parent59240363e319b22f2ca0b2170da6adaf7cfccd4d (diff)
downloadrails-454f1127056a47cadaba1725694f29d3007ab094.tar.gz
rails-454f1127056a47cadaba1725694f29d3007ab094.tar.bz2
rails-454f1127056a47cadaba1725694f29d3007ab094.zip
Use 1.8 hash style :bomb:
-rw-r--r--activerecord/test/cases/base_test.rb4
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