aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-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