aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorrohit <rohit.arondekar@gmail.com>2010-05-16 13:04:46 +0530
committerJosé Valim <jose.valim@gmail.com>2010-05-16 14:32:53 +0200
commitfc2480a277fd4753aebf68dcf8787d24e00bd057 (patch)
tree268c40c49119001ddb8aae1f1bd2a0d5bb51aeeb
parent3e84ea014e9f4d0f8d302c9bf8ad04240eec2804 (diff)
downloadrails-fc2480a277fd4753aebf68dcf8787d24e00bd057.tar.gz
rails-fc2480a277fd4753aebf68dcf8787d24e00bd057.tar.bz2
rails-fc2480a277fd4753aebf68dcf8787d24e00bd057.zip
Fixed 1 failure and 2 errors in ActionPack testsuite [#4613 state:commited]
Signed-off-by: José Valim <jose.valim@gmail.com>
-rw-r--r--actionpack/test/controller/assert_select_test.rb6
-rw-r--r--actionpack/test/controller/render_test.rb4
-rw-r--r--actionpack/test/template/capture_helper_test.rb2
3 files changed, 6 insertions, 6 deletions
diff --git a/actionpack/test/controller/assert_select_test.rb b/actionpack/test/controller/assert_select_test.rb
index f1254abcf7..7012c4c9b0 100644
--- a/actionpack/test/controller/assert_select_test.rb
+++ b/actionpack/test/controller/assert_select_test.rb
@@ -211,7 +211,7 @@ class AssertSelectTest < ActionController::TestCase
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>" }
@@ -276,8 +276,8 @@ class AssertSelectTest < ActionController::TestCase
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
diff --git a/actionpack/test/controller/render_test.rb b/actionpack/test/controller/render_test.rb
index 180d5e1a65..52049f2a8a 100644
--- a/actionpack/test/controller/render_test.rb
+++ b/actionpack/test/controller/render_test.rb
@@ -1388,7 +1388,7 @@ class EtagRenderTest < ActionController::TestCase
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
@@ -1524,4 +1524,4 @@ class LastModifiedRenderTest < ActionController::TestCase
get :conditional_hello_with_bangs
assert_response :success
end
-end \ No newline at end of file
+end
diff --git a/actionpack/test/template/capture_helper_test.rb b/actionpack/test/template/capture_helper_test.rb
index bf541c17d3..9f3d68a639 100644
--- a/actionpack/test/template/capture_helper_test.rb
+++ b/actionpack/test/template/capture_helper_test.rb
@@ -74,7 +74,7 @@ class CaptureHelperTest < ActionView::TestCase
@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