diff --git a/test/fixtures/active_record.rb b/test/fixtures/active_record.rb index 6ae75f43..9d020b60 100644 --- a/test/fixtures/active_record.rb +++ b/test/fixtures/active_record.rb @@ -71,7 +71,7 @@ class ARTagSerializer < ActiveModel::Serializer end class ARSectionSerializer < ActiveModel::Serializer - attributes :name + attributes 'name' end ARPost.create(title: 'New post', diff --git a/test/integration/active_record/active_record_test.rb b/test/integration/active_record/active_record_test.rb index cf914b90..702430d3 100644 --- a/test/integration/active_record/active_record_test.rb +++ b/test/integration/active_record/active_record_test.rb @@ -17,7 +17,7 @@ module ActiveModel ar_comments: [{ body: 'what a dumb post', ar_tags: [{ name: 'short' }, { name: 'whiny' }] }, { body: 'i liked it', ar_tags: [{:name=>"short"}, {:name=>"happy"}] }], ar_tags: [{ name: 'short' }, { name: 'whiny' }, { name: 'happy' }], - ar_section: { name: 'ruby' } + ar_section: { 'name' => 'ruby' } } }, post_serializer.as_json) end @@ -51,7 +51,7 @@ module ActiveModel ar_comments: [{ body: 'what a dumb post', ar_tags: [{ name: 'short' }, { name: 'whiny' }] }, { body: 'i liked it', ar_tags: [{:name=>"short"}, {:name=>"happy"}] }], ar_tags: [{ name: 'short' }, { name: 'whiny' }, { name: 'happy' }], - ar_section: { name: 'ruby' } + ar_section: { 'name' => 'ruby' } }, post_serializer.as_json) end end