Object
@private
# File lib/shoulda/matchers/action_controller/redirect_to_matcher.rb, line 49 def initialize(url_or_description, context, &block) @url_block = nil @url = nil @context = context @failure_message = nil @failure_message_when_negated = nil if block @url_block = block @location = url_or_description else @location = @url = url_or_description end end
# File lib/shoulda/matchers/action_controller/redirect_to_matcher.rb, line 74 def description "redirect to #{@location}" end
Generated with the Darkfish Rdoc Generator 2.