ActiveSupport::TestCase
# File lib/action_view/test_case.rb, line 85 def determine_default_helper_class(name) name.sub(/Test$/, '').constantize rescue NameError nil end
# File lib/action_view/test_case.rb, line 77 def helper_class if current_helper_class = read_inheritable_attribute(:helper_class) current_helper_class else self.helper_class = determine_default_helper_class(name) end end
# File lib/action_view/test_case.rb, line 91 def helper_method(*methods) # Almost a duplicate from ActionController::Helpers methods.flatten.each do |method| master_helper_module.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
# File lib/action_view/test_case.rb, line 68 def protect_against_forgery? false end
Generated with the Darkfish Rdoc Generator 2.