123456789_123456789_123456789_123456789_123456789_

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

Overview

Matcher for template rendering.

Instance Method Summary

Instance Method Details

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

Delegates to assert_template.

Examples:

expect(response).to have_rendered("new")
[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/matchers/have_rendered.rb', line 56

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

#render_template(options, message = nil)

Alias for #have_rendered.

[ GitHub ]

  
# File 'rspec-rails/lib/rspec/rails/matchers/have_rendered.rb', line 60

alias_method :render_template, :have_rendered