# File lib/action_view/test_case.rb, line 62 def determine_default_helper_class(name) determine_constant_from_test_name(name) do |constant| Module === constant && !(Class === constant) end end
# File lib/action_view/test_case.rb, line 81 def helper_class @helper_class ||= determine_default_helper_class(name) end
# File lib/action_view/test_case.rb, line 68 def helper_method(*methods) # Almost a duplicate from ActionController::Helpers methods.flatten.each do |method| _helpers.module_eval def #{method}(*args, &block) # def current_user(*args, &block) _test_case.send(%(#{method}), *args, &block) # _test_case.send(%(current_user), *args, &block) end # end end end
Generated with the Darkfish Rdoc Generator 2.