class Shoulda::ActionController::Matchers::RespondWithMatcher
def symbol_to_status_code(potential_symbol)
def symbol_to_status_code(potential_symbol) case potential_symbol when :success then 200 when :redirect then 300..399 when :missing then 404 when :error then 500..599 when Symbol ::ActionController::StatusCodes::SYMBOL_TO_STATUS_CODE[potential_symbol] else potential_symbol end end