Sha256: 9a42221dc1e980a4229bbc71b4523c88a6b49de72decc2d662934116cdecb47a

Contents?: true

Size: 657 Bytes

Versions: 1

Compression:

Stored size: 657 Bytes

Contents

include OldApiResource

Mocks.define do
  
  endpoint("/error_resources/new") do
    get(HashDealer.roll(:new_error_resource))
  end

  endpoint("/error_resources") do
    post(HashDealer.roll(:error_resource_errors), :params => {:error_resource => HashDealer.roll(:error_resource).matcher}, :status_code => 422)
  end
  
  endpoint("/error_full_message_resources/new") do
    get(HashDealer.roll(:new_error_resource))
  end

  endpoint("/error_full_message_resources") do
    post(HashDealer.roll(:error_resource_full_message_errors), :params => {:error_full_message_resource => HashDealer.roll(:error_resource).matcher}, :status_code => 422)
  end
  
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
old_api_resource-0.3.0 spec/support/mocks/error_resource_mocks.rb