@@ -1113,7 +1113,7 @@ def test_overwritting_rendering_relative_file_with_extension
11131113
11141114 def test_head_with_location_header
11151115 get :head_with_location_header
1116- assert @response . body . blank?
1116+ assert_blank @response . body
11171117 assert_equal "/foo" , @response . headers [ "Location" ]
11181118 assert_response :ok
11191119 end
@@ -1126,15 +1126,15 @@ def test_head_with_location_object
11261126 end
11271127
11281128 get :head_with_location_object
1129- assert @response . body . blank?
1129+ assert_blank @response . body
11301130 assert_equal "http://www.nextangle.com/customers/1" , @response . headers [ "Location" ]
11311131 assert_response :ok
11321132 end
11331133 end
11341134
11351135 def test_head_with_custom_header
11361136 get :head_with_custom_header
1137- assert @response . body . blank?
1137+ assert_blank @response . body
11381138 assert_equal "something" , @response . headers [ "X-Custom-Header" ]
11391139 assert_response :ok
11401140 end
@@ -1414,7 +1414,7 @@ def test_render_should_not_set_etag_when_last_modified_has_been_specified
14141414 assert_equal 200 , @response . status . to_i
14151415 assert_not_nil @response . last_modified
14161416 assert_nil @response . etag
1417- assert @response . body . present?
1417+ assert_present @response . body
14181418 end
14191419
14201420 def test_render_with_etag
@@ -1499,7 +1499,7 @@ def test_request_not_modified
14991499 @request . if_modified_since = @last_modified
15001500 get :conditional_hello
15011501 assert_equal 304 , @response . status . to_i
1502- assert @response . body . blank? , @response . body
1502+ assert_blank @response . body
15031503 assert_equal @last_modified , @response . headers [ 'Last-Modified' ]
15041504 end
15051505
@@ -1514,7 +1514,7 @@ def test_request_modified
15141514 @request . if_modified_since = 'Thu, 16 Jul 2008 00:00:00 GMT'
15151515 get :conditional_hello
15161516 assert_equal 200 , @response . status . to_i
1517- assert ! @response . body . blank?
1517+ assert_present @response . body
15181518 assert_equal @last_modified , @response . headers [ 'Last-Modified' ]
15191519 end
15201520
0 commit comments