Methods
Attributes
[W] | helper_class |
Instance Public methods
# File actionpack/lib/action_view/test_case.rb, line 68 68: def helper_method(*methods) 69: # Almost a duplicate from ActionController::Helpers 70: methods.flatten.each do |method| 71: _helpers.module_eval "def \#{method}(*args, &block) # def current_user(*args, &block)\n_test_case.send(%(\#{method}), *args, &block) # _test_case.send(%(current_user), *args, &block)\nend # end\n" 72: end 73: end
# File actionpack/lib/action_view/test_case.rb, line 52 52: def tests(helper_class) 53: case helper_class 54: when String, Symbol 55: self.helper_class = "#{helper_class.to_s.underscore}_helper".camelize.safe_constantize 56: when Module 57: self.helper_class = helper_class 58: end 59: end