From ef6ab5f0c026054ee5f3fae3b4dde697cada8691 Mon Sep 17 00:00:00 2001 From: vanstee Date: Tue, 16 Apr 2013 22:55:57 -0400 Subject: [PATCH] Switch back to the old hash syntax Just fixed up a couple of hash literals in the tests so that the build passes for 1.8.7 --- test/serializer_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/serializer_test.rb b/test/serializer_test.rb index cb4d5aff..3a47a395 100644 --- a/test/serializer_test.rb +++ b/test/serializer_test.rb @@ -428,7 +428,7 @@ class SerializerTest < ActiveModel::TestCase end end - post = Post.new(title: "My Post") + post = Post.new(:title => "My Post") comments = [Comment.new(:title => "Comment1", :id => 1), Comment.new(:title => "Comment2", :id => 2)] post.comments = comments @@ -439,8 +439,8 @@ class SerializerTest < ActiveModel::TestCase end json = post_serializer.new(post).as_json assert_equal({ - title: "My Post", - comment_ids: [1] + :title => "My Post", + :comment_ids => [1] }, json) end