From b4616d737c1b7246fb49290351cf1d0801ed6d31 Mon Sep 17 00:00:00 2001 From: Adam Stanton Date: Mon, 11 Feb 2013 07:04:59 -0800 Subject: [PATCH] Restore order of fields in hash to original order. --- test/array_serializer_test.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/test/array_serializer_test.rb b/test/array_serializer_test.rb index a238eae7..d3001ac1 100644 --- a/test/array_serializer_test.rb +++ b/test/array_serializer_test.rb @@ -12,7 +12,7 @@ class ArraySerializerTest < ActiveModel::TestCase serializer = array.active_model_serializer.new(array, :scope => {:scope => true}) assert_equal([ { :model => "Model" }, - { :first_name => "Jose", :last_name => "Valim", :ok => true, :scope => true }, + { :last_name => "Valim", :ok => true, :first_name => "Jose", :scope => true }, { :title => "Comment1" } ], serializer.as_json) end