Skip to content
Browse files

Merge pull request #8634 from senny/rewrite_order_dependent_test_case

rewrite order dependent test case
  • Loading branch information...
2 parents 2283a1d + e68505a commit 88a688382079846971f488947f6d1efe8063bc12 @rafaelfranca rafaelfranca committed Dec 27, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 activesupport/test/json/encoding_test.rb
View
3 activesupport/test/json/encoding_test.rb
@@ -276,7 +276,8 @@ def test_to_json_should_not_keep_options_around
f.bar = "world"
hash = {"foo" => f, "other_hash" => {"foo" => "other_foo", "test" => "other_test"}}
- assert_equal(%({"foo":{"foo":"hello","bar":"world"},"other_hash":{"foo":"other_foo","test":"other_test"}}), hash.to_json)
+ assert_equal({"foo"=>{"foo"=>"hello","bar"=>"world"},
+ "other_hash" => {"foo"=>"other_foo","test"=>"other_test"}}, JSON.parse(hash.to_json))
end
def test_struct_encoding

0 comments on commit 88a6883

Please sign in to comment.
Something went wrong with that request. Please try again.