instance method
view
Ruby on Rails 3.1.12
Since v3.0.20 PrivateSignature
view()
The instance of ActionView::Base that is used by render.
Source
# File actionpack/lib/action_view/test_case.rb, line 170
def view
@view ||= begin
view = @controller.view_context
view.singleton_class.send :include, _helpers
view.extend(Locals)
view.locals = self.locals
view.output_buffer = self.output_buffer
view
end
end
Defined in actionpack/lib/action_view/test_case.rb line 170
· View on GitHub
· Improve this page
· Find usages on GitHub
Defined in ActionView::TestCase::Behavior