Skip to content

Commit

Permalink
Merge pull request #5322 from arunagw/test_fix_1.8.7-3-1-stable
Browse files Browse the repository at this point in the history
Test fix 1.8.7 3 1 stable
  • Loading branch information
spastorino committed Mar 7, 2012
2 parents 54621f7 + d024ce1 commit 7455627
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion actionpack/test/controller/mime_responds_test.rb
Original file line number Original file line Diff line number Diff line change
Expand Up @@ -656,7 +656,9 @@ def test_using_hash_resource
@request.accept = "application/json" @request.accept = "application/json"
get :using_hash_resource get :using_hash_resource
assert_equal "application/json", @response.content_type 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 end


def test_using_hash_resource_with_post def test_using_hash_resource_with_post
Expand Down

0 comments on commit 7455627

Please sign in to comment.