Sha256: b4730324e59ed7152020c6a428cfcb93ac6dcdac3aa75049e5b18913ab71ff77
Contents?: true
Size: 1.02 KB
Versions: 9
Compression:
Stored size: 1.02 KB
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe SoapyCake::AdminTrack do subject(:admin_track) { described_class.new } describe '#mass_conversion_insert', :vcr do it 'inserts conversions' do result = admin_track.mass_conversion_insert( conversion_date: Date.new(2015, 5, 7), affiliate_id: 16059, campaign_id: 13268, sub_affiliate: '', creative_id: 5521, total_to_insert: 3, note: 'Test created on 2017-07-24', payout: 0.1, received: 0.2, transaction_ids: (1..3).map { |i| "test-transaction-id-#{i}" }.join(',') ) expect(result).to eq(success: true, message: 'Conversions Inserted') end end describe '#update_conversion', :vcr do it 'updates a conversion' do result = admin_track.update_conversion( conversion_id: 145211, offer_id: 5032, payout: 0.75, received: 1.75 ) expect(result).to eq(success: true, message: 'Conversion Updated') end end end
Version data entries
9 entries across 9 versions & 1 rubygems