Namespace
Methods
D
H
P
R
S
T
Included Modules
Constants
EXCLUDE_IVARS = %w{ @output_buffer @fixture_cache @method_name @_result @loaded_fixtures @test_passed @view }
 
Attributes
[RW] controller
[RW] output_buffer
[RW] rendered
Class Public methods
determine_default_helper_class(name)
# File actionpack/lib/action_view/test_case.rb, line 85
def determine_default_helper_class(name)
  name.sub(/Test$/, '').constantize
rescue NameError
  nil
end
helper_class()
# File actionpack/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
helper_method(*methods)
# File actionpack/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 <<-end_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_eval
  end
end
tests(helper_class)
# File actionpack/lib/action_view/test_case.rb, line 73
def tests(helper_class)
  self.helper_class = helper_class
end
Instance Public methods
protect_against_forgery?()
# File actionpack/lib/action_view/test_case.rb, line 68
def protect_against_forgery?
  false
end
render(options = {}, local_assigns = {}, &block)
# File actionpack/lib/action_view/test_case.rb, line 63
def render(options = {}, local_assigns = {}, &block)
  @rendered << output = _view.render(options, local_assigns, &block)
  output
end
setup_with_controller()
# File actionpack/lib/action_view/test_case.rb, line 54
def setup_with_controller
  @controller = TestController.new
  @output_buffer = ''
  @rendered = ''
  self.class.send(:include_helper_modules!)
  make_test_case_available_to_view!
end