Sha256: 17d2b8633c42e50ffd046871c90cfb06ff4e9d1f507cc225efe634dcc41abccf
Contents?: true
Size: 1.26 KB
Versions: 1
Compression:
Stored size: 1.26 KB
Contents
include OldApiResource 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 endpoint("/has_one_objects/new") do get({}) end endpoint("/has_many_objects/new") do get({ "attributes" => { "public" => ["name"] } }) end endpoint("/belongs_to_objects/new") do get({}) end endpoint("/test_associations/new") do get({}) end endpoint("/inner_classes/new") do get({}) end endpoint("/childern/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/association_mocks.rb |