Sha256: 421e4c41d0cb1e682dc6788cf65619762e983eabc36fd65850ce70196a3925b7

Contents?: true

Size: 653 Bytes

Versions: 57

Compression:

Stored size: 653 Bytes

Contents

include ApiResource

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

57 entries across 57 versions & 2 rubygems

Version Path
api_resource-0.6.25 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.24 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.23 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.22 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.21 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.20 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.19 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.18 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.17 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.16 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.15 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.14 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.13 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.12 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.11 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.9 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.10 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.8 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.7 spec/support/mocks/error_resource_mocks.rb
api_resource-0.6.6 spec/support/mocks/error_resource_mocks.rb