diff options
author | Arun Agrawal <arunagw@gmail.com> | 2011-10-24 14:11:20 +0530 |
---|---|---|
committer | Arun Agrawal <arunagw@gmail.com> | 2011-10-24 14:11:20 +0530 |
commit | 244dcfea477ace65963b41de122f7dab7904900b (patch) | |
tree | 8a785e22341fc23cbe8f87695529d3ce7ddc6c2e /actionpack/test/controller | |
parent | e75c18bff811b95e12634cdbf04df244a227d46d (diff) | |
download | rails-244dcfea477ace65963b41de122f7dab7904900b.tar.gz rails-244dcfea477ace65963b41de122f7dab7904900b.tar.bz2 rails-244dcfea477ace65963b41de122f7dab7904900b.zip |
ActionPack test fix for RBX
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/mime_responds_test.rb | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/actionpack/test/controller/mime_responds_test.rb b/actionpack/test/controller/mime_responds_test.rb index 2aa73f1650..e91e11a8a7 100644 --- a/actionpack/test/controller/mime_responds_test.rb +++ b/actionpack/test/controller/mime_responds_test.rb @@ -656,7 +656,9 @@ class RespondWithControllerTest < ActionController::TestCase @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 |