Sha256: 32cf0c08ebe061ded5fbfcbb664856c5eb30d22c52b5b3a87cfefeb25799b856

Contents?: true

Size: 819 Bytes

Versions: 6

Compression:

Stored size: 819 Bytes

Contents

# frozen_string_literal: true
require 'spec_helper'

RSpec.describe SoapyCake::AdminTrack do
  describe '#mass_conversion_insert', :vcr do
    it 'inserts conversions' do
      result = subject.mass_conversion_insert(
        conversion_date: Date.new(2015, 5, 6),
        affiliate_id: 16059,
        campaign_id: 13268,
        sub_affiliate: '',
        creative_id: 5521,
        total_to_insert: 12
      )

      expect(result).to eq(success: true, message: 'Conversions Inserted')
    end
  end

  describe '#update_conversion', :vcr do
    it 'updates a conversion' do
      result = subject.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

6 entries across 6 versions & 1 rubygems

Version Path
soapy_cake-1.25.1 spec/integration/soapy_cake/admin_track_spec.rb
soapy_cake-1.24.1 spec/integration/soapy_cake/admin_track_spec.rb
soapy_cake-1.23.1 spec/integration/soapy_cake/admin_track_spec.rb
soapy_cake-1.23.0 spec/integration/soapy_cake/admin_track_spec.rb
soapy_cake-1.22.1 spec/integration/soapy_cake/admin_track_spec.rb
soapy_cake-1.22.0 spec/integration/soapy_cake/admin_track_spec.rb