Skip to content

Commit

Permalink
Fixed 1 failure and 2 errors in ActionPack testsuite [#4613 state:com…
Browse files Browse the repository at this point in the history
…mited]

Signed-off-by: José Valim <jose.valim@gmail.com>
  • Loading branch information
rohitarondekar authored and josevalim committed May 16, 2010
1 parent 3e84ea0 commit fc2480a
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions actionpack/test/controller/assert_select_test.rb
Expand Up @@ -211,7 +211,7 @@ def test_assert_select_text_match
assert_nothing_raised { assert_select "div", "foo" }
assert_nothing_raised { assert_select "div", "bar" }
assert_nothing_raised { assert_select "div", /\w*/ }
assert_nothing_raised { assert_select "div", /\w*/, :count=>2 }
assert_nothing_raised { assert_select "div", :text => /\w*/, :count=>2 }
assert_raise(Assertion) { assert_select "div", :text=>"foo", :count=>2 }
assert_nothing_raised { assert_select "div", :html=>"<span>bar</span>" }
assert_nothing_raised { assert_select "div", :html=>"<span>bar</span>" }
Expand Down Expand Up @@ -276,8 +276,8 @@ def test_elect_with_xml_namespace_attributes

def test_css_select
render_html %Q{<div id="1"></div><div id="2"></div>}
assert 2, css_select("div").size
assert 0, css_select("p").size
assert_equal 2, css_select("div").size
assert_equal 0, css_select("p").size
end

def test_nested_css_select
Expand Down
4 changes: 2 additions & 2 deletions actionpack/test/controller/render_test.rb
Expand Up @@ -1388,7 +1388,7 @@ def test_render_against_etag_request_should_304_when_match
def test_render_against_etag_request_should_have_no_content_length_when_match
@request.if_none_match = etag_for("hello david")
get :render_hello_world_from_variable
assert !@response.headers.has_key?("Content-Length"), @response.headers['Content-Length']
assert !@response.headers.has_key?("Content-Length")
end

def test_render_against_etag_request_should_200_when_no_match
Expand Down Expand Up @@ -1524,4 +1524,4 @@ def test_last_modified_works_with_less_than_too
get :conditional_hello_with_bangs
assert_response :success
end
end
end
2 changes: 1 addition & 1 deletion actionpack/test/template/capture_helper_test.rb
Expand Up @@ -74,7 +74,7 @@ def test_with_output_buffer_sets_proper_encoding
@av.output_buffer.force_encoding(alt_encoding)

@av.with_output_buffer do
assert alt_encoding, @av.output_buffer.encoding
assert_equal alt_encoding, @av.output_buffer.encoding
end
end
end
Expand Down

0 comments on commit fc2480a

Please sign in to comment.