module Shoulda::ActionController::Macros
def should_respond_with(response)
Example:
Macro that creates a test asserting that the controller responded with a 'response' status code.
def should_respond_with(response) should "respond with #{response}" do matcher = respond_with(response) assert_accepts matcher, @controller end end