module Shoulda::ActionController::Macros

def should_not_set_the_flash

Macro that creates a test asserting that the flash is empty.
def should_not_set_the_flash
  matcher = set_the_flash
  should "not #{matcher.description}" do
    assert_rejects matcher, @controller
  end
end