aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test
diff options
context:
space:
mode:
authorNeeraj Singh <neerajdotname@gmail.com>2011-06-10 14:19:24 -0400
committerNeeraj Singh <neerajdotname@gmail.com>2011-06-11 03:11:05 -0400
commit5da89af6f6d1e36ac2163e87a090a923431f5bd0 (patch)
treebb646976cc44eaccce140dc73bc509c77335735b /actionpack/test
parent94df84a8a4b183037c160d513bf9fa9d1858c36f (diff)
downloadrails-5da89af6f6d1e36ac2163e87a090a923431f5bd0.tar.gz
rails-5da89af6f6d1e36ac2163e87a090a923431f5bd0.tar.bz2
rails-5da89af6f6d1e36ac2163e87a090a923431f5bd0.zip
try not to use assert_blank when nil will would
be considered as failure Test for specific value to the extent possible
Diffstat (limited to 'actionpack/test')
-rw-r--r--actionpack/test/controller/webservice_test.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/actionpack/test/controller/webservice_test.rb b/actionpack/test/controller/webservice_test.rb
index 621fb79915..ae8588cbb0 100644
--- a/actionpack/test/controller/webservice_test.rb
+++ b/actionpack/test/controller/webservice_test.rb
@@ -30,7 +30,7 @@ class WebServiceTest < ActionDispatch::IntegrationTest
def test_check_parameters
with_test_route_set do
get "/"
- assert_blank @controller.response.body
+ assert_equal '', @controller.response.body
end
end
@@ -162,7 +162,7 @@ class WebServiceTest < ActionDispatch::IntegrationTest
def test_use_xml_ximple_with_empty_request
with_test_route_set do
assert_nothing_raised { post "/", "", {'CONTENT_TYPE' => 'application/xml'} }
- assert_blank @controller.response.body
+ assert_equal '', @controller.response.body
end
end