RSpec::Matchers::BuiltIn::BaseMatcher
# File lib/rspec/rails/matchers/have_rendered.rb, line 5 def initialize(scope, expected, message=nil) @expected = Symbol === expected ? expected.to_s : expected @message = message @scope = scope end
@api private
# File lib/rspec/rails/matchers/have_rendered.rb, line 19 def failure_message_for_should rescued_exception.message end
# File lib/rspec/rails/matchers/have_rendered.rb, line 24 def failure_message_for_should_not "expected not to render #{expected.inspect}, but did" end
# File lib/rspec/rails/matchers/have_rendered.rb, line 12 def matches?(*) match_unless_raises ActiveSupport::TestCase::Assertion do @scope.assert_template expected, @message end end
[Validate]
Generated with the Darkfish Rdoc Generator 2.