1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00

fixing wrong test

This commit is contained in:
Aaron Patterson 2011-01-17 14:43:29 -08:00
parent 9702159373
commit 990e6a1b3a

View file

@ -658,7 +658,7 @@ class RespondWithControllerTest < ActionController::TestCase
@request.accept = "application/json"
get :using_hash_resource
assert_equal "application/json", @response.content_type
assert_equal %Q[{"result":["david",13]}], @response.body
assert_equal %Q[{"result":{"name":"david","id":13}}], @response.body
end
def test_using_resource_with_block