Permalink
Browse files

Test fix failing in 1.8.7-p358

  • Loading branch information...
1 parent 54621f7 commit d024ce1d6cf9dec0259e63c9a3f3d07fe3fd891b @arunagw arunagw committed Mar 7, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/test/controller/mime_responds_test.rb
@@ -656,7 +656,9 @@ def test_using_hash_resource
@request.accept = "application/json"
get :using_hash_resource
assert_equal "application/json", @response.content_type
- assert_equal %Q[{"result":{"name":"david","id":13}}], @response.body
+ assert @response.body.include?("result")
+ assert @response.body.include?('"name":"david"')
+ assert @response.body.include?('"id":13')
end
def test_using_hash_resource_with_post

0 comments on commit d024ce1

Please sign in to comment.