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

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

Defined Under Namespace

Classes: RenderTemplateMatcher

Instance Method Summary collapse

Instance Method Details

#render_template(options, message = nil) ⇒ Object

Delegates to ‘assert_template`

Examples:


response.should render_template("new")


35
36
37
# File 'lib/rspec/rails/matchers/render_template.rb', line 35

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