Skip to content

Commit

Permalink
Make some assertions in the ActionView::TestCase tests actually do so…
Browse files Browse the repository at this point in the history
…mething.

[#3468 state:resolved]

Signed-off-by: Eloy Duran <eloy.de.enige@gmail.com>
  • Loading branch information
cch1 authored and alloy committed Nov 6, 2009
1 parent 6b2291f commit df9a47e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions actionpack/test/view/test_case_test.rb
Expand Up @@ -23,7 +23,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
Expand All @@ -40,7 +40,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

Expand All @@ -57,14 +57,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

Expand Down

0 comments on commit df9a47e

Please sign in to comment.