Permalink
Browse files

Merge pull request #5322 from arunagw/test_fix_1.8.7-3-1-stable

Test fix 1.8.7 3 1 stable
  • Loading branch information...
2 parents 54621f7 + d024ce1 commit 745562700d564a0cdbdc4e90c3ba1463d7926653 @spastorino spastorino committed Mar 7, 2012
Showing with 3 additions and 1 deletion.
  1. +3 −1 actionpack/test/controller/mime_responds_test.rb
View
4 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 7455627

Please sign in to comment.