Object
@private
# File lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb, line 172 def [](key) @options[:key] = key self end
# File lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb, line 182 def description description = "set the #{expected_flash_invocation}" description << " to #{@value.inspect}" unless @value.nil? description end
# File lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb, line 188 def failure_message "Expected #{expectation}" end
# File lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb, line 193 def failure_message_when_negated "Did not expect #{expectation}" end
# File lib/shoulda/matchers/action_controller/set_the_flash_matcher.rb, line 177 def matches?(controller) @controller = controller sets_the_flash? && string_value_matches? && regexp_value_matches? end
Generated with the Darkfish Rdoc Generator 2.