# File lib/action_view/test_case.rb, line 53 53: def determine_default_helper_class(name) 54: mod = name.sub(/Test$/, '').constantize 55: mod.is_a?(Class) ? nil : mod 56: rescue NameError 57: nil 58: end
# File lib/action_view/test_case.rb, line 73 73: def helper_class 74: @helper_class ||= determine_default_helper_class(name) 75: end
# File lib/action_view/test_case.rb, line 60 60: def helper_method(*methods) 61: # Almost a duplicate from ActionController::Helpers 62: methods.flatten.each do |method| 63: _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 64: end 65: end
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.