Module: RSpec::Rails::Matchers::RenderTemplate
Relationships & Source Files | |
Namespace Children | |
Classes:
| |
Extension / Inclusion / Inheritance Descendants | |
Included In:
| |
Defined in: | rspec-rails/lib/rspec/rails/matchers/have_rendered.rb |
Overview
Matcher for template rendering.
Instance Method Summary
-
#have_rendered(options, message = nil)
(also: #render_template)
Delegates to
assert_template
. -
#render_template(options, message = nil)
Alias for #have_rendered.
Instance Method Details
#have_rendered(options, message = nil) Also known as: #render_template
Delegates to assert_template
.
# File 'rspec-rails/lib/rspec/rails/matchers/have_rendered.rb', line 56
def have_rendered(, = nil) RenderTemplateMatcher.new(self, , ) end
#render_template(options, message = nil)
Alias for #have_rendered.
# File 'rspec-rails/lib/rspec/rails/matchers/have_rendered.rb', line 60
alias_method :render_template, :have_rendered