# File lib/action_view/test_case.rb, line 61 61: def determine_default_helper_class(name) 62: mod = name.sub(/Test$/, '').constantize 63: mod.is_a?(Class) ? nil : mod 64: rescue NameError 65: nil 66: end
# File lib/action_view/test_case.rb, line 81 81: def helper_class 82: @helper_class ||= determine_default_helper_class(name) 83: end
# File 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) _test_case.send(%(#{method}), *args, &block) # _test_case.send(%(current_user), *args, &block) end # end 72: end 73: end
# File lib/action_view/test_case.rb, line 85 85: def new(*) 86: include_helper_modules! 87: super 88: end
# File 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
Disabled; run with --debug to generate this.
Generated with the Darkfish Rdoc Generator 1.1.6.