module Shoulda::ActionController::Matchers
def set_the_flash
it { should set_the_flash.to(/created/i) }
it { should set_the_flash.to("Thank you for placing this order.") }
it { should set_the_flash }
Example:
Regexp, or nil (indicating that the flash should not be set).
Ensures that the flash contains the given value. Can be a String, a
def set_the_flash SetTheFlashMatcher.new end