class LocationsController

Public Instance Methods

create() click to toggle source
# File test/location_responder_test.rb, line 13
def create
  respond_with @resource, location: -> { 'given_location' }
end
set_resource() click to toggle source
# File test/location_responder_test.rb, line 21
def set_resource
  @resource = Address.new
  @resource.errors[:fail] << "FAIL" if params[:fail]
end
update() click to toggle source
# File test/location_responder_test.rb, line 17
def update
  respond_with @resource, location: 'given_location'
end