Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

try not to use assert_blank when nil will would

be considered as failure

Test for specific value to the extent possible
  • Loading branch information...
commit 5da89af6f6d1e36ac2163e87a090a923431f5bd0 1 parent 94df84a
Neeraj Singh neerajdotname authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/controller/webservice_test.rb
4 actionpack/test/controller/webservice_test.rb
View
@@ -30,7 +30,7 @@ def setup
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 @@ def test_register_and_use_xml_simple
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
Please sign in to comment.
Something went wrong with that request. Please try again.