aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/template
diff options
context:
space:
mode:
authorChris Hapgood <cch1@hapgoods.com>2009-11-06 16:25:11 -0500
committerEloy Duran <eloy.de.enige@gmail.com>2009-11-07 00:39:39 +0100
commitb43964d6061f4a31320906172f763dd3dd188f4d (patch)
tree89ad57344ddd45acc4fb63513646d9e1169f626e /actionpack/test/template
parentcbded53671bccccbaf7e9fdfa93ef86cb097daa3 (diff)
downloadrails-b43964d6061f4a31320906172f763dd3dd188f4d.tar.gz
rails-b43964d6061f4a31320906172f763dd3dd188f4d.tar.bz2
rails-b43964d6061f4a31320906172f763dd3dd188f4d.zip
Make some assertions in the ActionView::TestCase tests actually do something.
[#3468 state:resolved] Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
Diffstat (limited to 'actionpack/test/template')
-rw-r--r--actionpack/test/template/test_case_test.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/actionpack/test/template/test_case_test.rb b/actionpack/test/template/test_case_test.rb
index ca72c13ffa..37dcb86d80 100644
--- a/actionpack/test/template/test_case_test.rb
+++ b/actionpack/test/template/test_case_test.rb
@@ -24,7 +24,7 @@ module ActionView
test_case.class_eval do
test "helpers defined on ActionView::TestCase are available" do
assert test_case.ancestors.include?(ASharedTestHelper)
- assert 'Holla!', from_shared_helper
+ assert_equal 'Holla!', from_shared_helper
end
end
end
@@ -41,7 +41,7 @@ module ActionView
helper AnotherTestHelper
test "additional helper classes can be specified as in a controller" do
assert test_case.ancestors.include?(AnotherTestHelper)
- assert 'Howdy!', from_another_helper
+ assert_equal 'Howdy!', from_another_helper
end
end
@@ -58,14 +58,14 @@ module ActionView
helper AnotherTestHelper
test "additional helper classes can be specified as in a controller" do
assert test_case.ancestors.include?(AnotherTestHelper)
- assert 'Howdy!', from_another_helper
+ assert_equal 'Howdy!', from_another_helper
test_case.helper_class.module_eval do
def render_from_helper
from_another_helper
end
end
- assert 'Howdy!', render(:partial => 'test/from_helper')
+ assert_equal 'Howdy!', render(:partial => 'test/from_helper')
end
end