Parent

Class/Module Index [+]

Quicksearch

Shoulda::Matchers::ActionController::RenderTemplateMatcher

@private

Attributes

failure_message[R]
failure_message_for_should[R]
failure_message_for_should_not[R]
failure_message_when_negated[R]

Public Class Methods

new(options, message, context) click to toggle source
# File lib/shoulda/matchers/action_controller/render_template_matcher.rb, line 52
def initialize(options, message, context)
  @options = options
  @message = message
  @template = options.is_a?(Hash) ? options[:partial] : options
  @context = context
  @controller = nil
  @failure_message = nil
  @failure_message_when_negated = nil
end

Public Instance Methods

description() click to toggle source
# File lib/shoulda/matchers/action_controller/render_template_matcher.rb, line 67
def description
  "render template #{@template}"
end
in_context(context) click to toggle source
# File lib/shoulda/matchers/action_controller/render_template_matcher.rb, line 71
def in_context(context)
  @context = context
  self
end
matches?(controller) click to toggle source
# File lib/shoulda/matchers/action_controller/render_template_matcher.rb, line 62
def matches?(controller)
  @controller = controller
  renders_template?
end

[Validate]

Generated with the Darkfish Rdoc Generator 2.