Sha256: c73d807ebc67985e49b3d1af899b4774e5f59c91abc1131f88406de011983771
Contents?: true
Size: 996 Bytes
Versions: 1
Compression:
Stored size: 996 Bytes
Contents
include OldApiResource Mocks.define do endpoint("/test_resources/new") do get(HashDealer.roll(:new_test_object)) end endpoint("/test_resources") do post(HashDealer.roll(:test_resource).merge(:id => 1), :params => {:test_resource => HashDealer.roll(:test_resource).matcher}) get((0..4).to_a.collect{HashDealer.roll(:test_resource)}) get((0..4).to_a.collect{HashDealer.roll(:test_resource)}, :params => {:active => true}) end endpoint("/test_resources/:id") do get(HashDealer.roll(:test_resource)) do |params| self.merge(params) end delete({}) put({}, :params => {:test_resource => HashDealer.roll(:test_resource).matcher}) end endpoint("/child_test_resources/new") do get({}) end endpoint("/child_test_resource2s/new") do get({}) end endpoint("/another_test_resources/new") do get({}) end endpoint("/test_classes/new") do get({}) end endpoint("/children/new") do get({}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
old_api_resource-0.3.0 | spec/support/mocks/test_resource_mocks.rb |