Parent

Included Modules

Class/Module Index [+]

Quicksearch

RSpec::Rails::Matchers::RenderTemplate::RenderTemplateMatcher

Public Class Methods

new(scope, expected, message=nil) click to toggle source
# File lib/rspec/rails/matchers/render_template.rb, line 6
def initialize(scope, expected, message=nil)
  super(Symbol === expected ? expected.to_s : expected)
  @message = message
  @scope = scope
end

Public Instance Methods

failure_message_for_should() click to toggle source

@api private

# File lib/rspec/rails/matchers/render_template.rb, line 20
def failure_message_for_should
  rescued_exception.message
end
failure_message_for_should_not() click to toggle source

@api private

# File lib/rspec/rails/matchers/render_template.rb, line 25
def failure_message_for_should_not
  "expected not to render #{expected.inspect}, but did"
end
matches?(*) click to toggle source

@api private

# File lib/rspec/rails/matchers/render_template.rb, line 13
def matches?(*)
  match_unless_raises ActiveSupport::TestCase::Assertion do
    @scope.assert_template expected, @message
  end
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.