Skip to content
This repository
Browse code

Merge pull request #8634 from senny/rewrite_order_dependent_test_case

rewrite order dependent test case
  • Loading branch information...
commit 88a688382079846971f488947f6d1efe8063bc12 2 parents 2283a1d + e68505a
Rafael Mendonça França rafaelfranca authored

Showing 1 changed file with 2 additions and 1 deletion. Show diff stats Hide diff stats

  1. +2 1  activesupport/test/json/encoding_test.rb
3  activesupport/test/json/encoding_test.rb
@@ -276,7 +276,8 @@ def test_to_json_should_not_keep_options_around
276 276 f.bar = "world"
277 277
278 278 hash = {"foo" => f, "other_hash" => {"foo" => "other_foo", "test" => "other_test"}}
279   - assert_equal(%({"foo":{"foo":"hello","bar":"world"},"other_hash":{"foo":"other_foo","test":"other_test"}}), hash.to_json)
  279 + assert_equal({"foo"=>{"foo"=>"hello","bar"=>"world"},
  280 + "other_hash" => {"foo"=>"other_foo","test"=>"other_test"}}, JSON.parse(hash.to_json))
280 281 end
281 282
282 283 def test_struct_encoding

0 comments on commit 88a6883

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