Permalink
Browse files

Make some assertions in the ActionView::TestCase tests actually do so…

…mething.

[#3468 state:resolved]

Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
  • Loading branch information...
1 parent cbded53 commit b43964d6061f4a31320906172f763dd3dd188f4d @cch1 cch1 committed with alloy Nov 6, 2009
Showing with 4 additions and 4 deletions.
  1. +4 −4 actionpack/test/template/test_case_test.rb
@@ -24,7 +24,7 @@ def self.included(test_case)
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 @@ class GeneralViewTest < ActionView::TestCase
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 @@ class ClassMethodsTest < ActionView::TestCase
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

0 comments on commit b43964d

Please sign in to comment.