Sha256: 4658d342859d150ed8928a3e7bfa97c92a5b735b4a7d31beec20a53522e975e0
Contents?: true
Size: 831 Bytes
Versions: 3
Compression:
Stored size: 831 Bytes
Contents
describe MangoPay::Report do def create params = { Tag: 'custom meta', CallbackURL: 'http://www.my-site.com/callbackURL/', DownloadFormat: 'CSV', Sort: 'CreationDate:DESC', Preview: false, Filters: {}, Columns: [ 'Id', 'CreationDate' ] } MangoPay::Report.create(params) end describe 'CREATE' do it 'creates a report' do created = create expect(created['Id']).to_not be_nil end end describe 'FETCH' do it 'fetches a report' do created = create fetched = MangoPay::Report.fetch(created['Id']) expect(fetched['Id']).to eq(created['Id']) end it 'fetches all the reports' do reports = MangoPay::Report.fetch() expect(reports).to be_kind_of(Array) expect(reports).not_to be_empty end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
mangopay-3.0.27 | spec/mangopay/report_spec.rb |
mangopay-3.0.26 | spec/mangopay/report_spec.rb |
mangopay-3.0.25.pre.alpha.pre.20 | spec/mangopay/report_spec.rb |