Permalink
Browse files

remove_method is private

  • Loading branch information...
1 parent ecf84b2 commit c8e1cc8657c19a852f3c84cdc61df538486f5adf Carlhuda committed Mar 5, 2010
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/template/test_case_test.rb
@@ -104,7 +104,7 @@ def render_from_helper
assert_match /Hello: EloyHello: Manfred/, render(:partial => 'test/from_helper')
ensure
- self.class.helper_class.remove_method :render_from_helper
+ self.class.helper_class.send(:remove_method, :render_from_helper)
end
end
@@ -162,7 +162,7 @@ def render_from_helper; from_test_case end
end
assert_equal 'Word!', render(:partial => 'test/from_helper')
ensure
- _helpers.remove_method :render_from_helper
+ _helpers.send(:remove_method, :render_from_helper)
end
end

0 comments on commit c8e1cc8

Please sign in to comment.