Sha256: dc207e06f26d61cc5978cdbadfb6db3810b7d946143333922519868895244474
Contents?: true
Size: 873 Bytes
Versions: 1
Compression:
Stored size: 873 Bytes
Contents
include ApiResource Mocks.define do endpoint('/single_object_association') do get(HashDealer.roll(:test_association_resource), :params => {}) get(HashDealer.roll(:active_test_association_resource), :params => {:active => true}) get(HashDealer.roll(:active_birthday_test_association_resource), :params => {:active => true, :birthday => true}) end endpoint('/multi_object_association') do get((0..4).to_a.collect{HashDealer.roll(:test_association_resource)}, :params => {}) get((0..4).to_a.collect{HashDealer.roll(:active_test_association_resource)}, :params => {:active => true}) get((0..4).to_a.collect{HashDealer.roll(:active_test_association_resource)}, :params => {:active => false}) get((0..4).to_a.collect{HashDealer.roll(:active_birthday_test_association_resource)}, :params => {:active => true, :birthday => true}) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
resource-0.1.0 | spec/support/mocks/association_mocks.rb |