Sha256: c52de4b531a0d27d37081fa5d67e54c3e5a1d999e31f6ef9565bf4f95068cdb3
Contents?: true
Size: 487 Bytes
Versions: 5
Compression:
Stored size: 487 Bytes
Contents
module AdvertisersFactory def valid_advertiser_params(params = {}) { 'name': "new advertiser #{random_string}", 'status_id': 1, 'category_id': 1010 }.merge(params) end def create_advertiser(params = {}) _params = valid_advertiser_params.merge(params) api_client.create_advertiser(_params) end def delete_all_advertisers api_client.advertisers.each do |advertiser| api_client.delete_advertiser(advertiser['id']) end end end
Version data entries
5 entries across 5 versions & 1 rubygems