File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change @@ -211,7 +211,7 @@ def test_assert_select_text_match
211
211
assert_nothing_raised { assert_select "div" , "foo" }
212
212
assert_nothing_raised { assert_select "div" , "bar" }
213
213
assert_nothing_raised { assert_select "div" , /\w */ }
214
- assert_nothing_raised { assert_select "div" , /\w */ , :count => 2 }
214
+ assert_nothing_raised { assert_select "div" , :text => /\w */ , :count => 2 }
215
215
assert_raise ( Assertion ) { assert_select "div" , :text => "foo" , :count => 2 }
216
216
assert_nothing_raised { assert_select "div" , :html => "<span>bar</span>" }
217
217
assert_nothing_raised { assert_select "div" , :html => "<span>bar</span>" }
@@ -276,8 +276,8 @@ def test_elect_with_xml_namespace_attributes
276
276
277
277
def test_css_select
278
278
render_html %Q{<div id="1"></div><div id="2"></div>}
279
- assert 2 , css_select ( "div" ) . size
280
- assert 0 , css_select ( "p" ) . size
279
+ assert_equal 2 , css_select ( "div" ) . size
280
+ assert_equal 0 , css_select ( "p" ) . size
281
281
end
282
282
283
283
def test_nested_css_select
Original file line number Diff line number Diff line change @@ -1388,7 +1388,7 @@ def test_render_against_etag_request_should_304_when_match
1388
1388
def test_render_against_etag_request_should_have_no_content_length_when_match
1389
1389
@request . if_none_match = etag_for ( "hello david" )
1390
1390
get :render_hello_world_from_variable
1391
- assert !@response . headers . has_key? ( "Content-Length" ) , @response . headers [ 'Content-Length' ]
1391
+ assert !@response . headers . has_key? ( "Content-Length" )
1392
1392
end
1393
1393
1394
1394
def test_render_against_etag_request_should_200_when_no_match
@@ -1524,4 +1524,4 @@ def test_last_modified_works_with_less_than_too
1524
1524
get :conditional_hello_with_bangs
1525
1525
assert_response :success
1526
1526
end
1527
- end
1527
+ end
Original file line number Diff line number Diff line change @@ -74,7 +74,7 @@ def test_with_output_buffer_sets_proper_encoding
74
74
@av . output_buffer . force_encoding ( alt_encoding )
75
75
76
76
@av . with_output_buffer do
77
- assert alt_encoding , @av . output_buffer . encoding
77
+ assert_equal alt_encoding , @av . output_buffer . encoding
78
78
end
79
79
end
80
80
end
You can’t perform that action at this time.
0 commit comments