module Shoulda::Matchers::ActionController
def render_template(options = {}, message = nil)
assert that no partials were rendered
it { should render_template(partial: '_customer', count: 2) }
assert that the "_customer" partial was rendered twice
it { should render_template(partial: '_customer') }
assert that the "_customer" partial was rendered
it { should render_template(:show) }
Example:
Ensures a controller rendered the given template.
:nodoc:
def render_template(options = {}, message = nil) RenderTemplateMatcher.new(options, message, self) end