Permalink
Browse files

Use 1.8 hash style 💣

  • Loading branch information...
1 parent 5924036 commit 454f1127056a47cadaba1725694f29d3007ab094 @carlosantoniodasilva carlosantoniodasilva committed Dec 11, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 activerecord/test/cases/base_test.rb
View
4 activerecord/test/cases/base_test.rb
@@ -1447,7 +1447,7 @@ def test_serialize_attribute_via_select_method_when_time_zone_available
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 @@ def test_cache_key_changes_when_child_touched
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

0 comments on commit 454f112

Please sign in to comment.