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

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

Defined Under Namespace

Classes: RenderTemplateMatcher

Instance Method Summary (collapse)

Instance Method Details

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

Delegates to assert_template

Examples:


response.should have_rendered("new")


34
35
36
# File 'lib/rspec/rails/matchers/have_rendered.rb', line 34

def have_rendered(options, message=nil)
  RenderTemplateMatcher.new(self, options, message)
end