module ThoughtBot::Shoulda::Controller::Helpers

def get_existing_record(res) # :nodoc:

:nodoc:
def get_existing_record(res) # :nodoc:
  returning(instance_variable_get("@#{res.object}")) do |record|
    assert(record, "This test requires you to set @#{res.object} in your setup block")
  end
end