Module: RSpec::Rails::Matchers::RenderTemplate Private

Included in:
ControllerExampleGroup, RequestExampleGroup, ViewExampleGroup
Defined in:
lib/rspec/rails/matchers/have_rendered.rb

Overview

This module is part of a private API. You should avoid using this module if possible, as it may be removed or be changed in the future.

Matcher for template rendering.

Instance Method Summary (collapse)

Instance Method Details

- (Object) have_rendered(options, message = nil) Also known as: render_template

This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.

Delegates to assert_template.

Examples:

expect(response).to have_rendered("new")
36
37
38
# File 'lib/rspec/rails/matchers/have_rendered.rb', line 36
def have_rendered(options, message = nil)
  RenderTemplateMatcher.new(self, options, message)
end