Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove_method is private

  • Loading branch information...
commit c8e1cc8657c19a852f3c84cdc61df538486f5adf 1 parent ecf84b2
Carlhuda authored
Showing with 2 additions and 2 deletions.
  1. +2 −2 actionpack/test/template/test_case_test.rb
View
4 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
Please sign in to comment.
Something went wrong with that request. Please try again.