Sha256: 283fb106151fc9ed111dfddf89f9ef7255448b9cf0e308ae1a3548c0e1061a6a

Contents?: true

Size: 745 Bytes

Versions: 4

Compression:

Stored size: 745 Bytes

Contents

require 'spec_helper'

RSpec.describe SoapyCake::AdminTrack do
  describe '#decrypt_affiliate_link' do
    let(:service) { :track }
    let(:cake_method) { :decrypt_affiliate_link }
    let(:method) { :decrypt_affiliate_link }
    let(:cake_opts) { { a: 1 } }
    let(:opts) { nil }

    it_behaves_like 'a cake admin method'
  end

  describe '#mass_conversion_insert', :vcr do
    it 'insers 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
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
soapy_cake-1.14.4 spec/integration/soapy_cake/admin_track_spec.rb
soapy_cake-1.14.3 spec/integration/soapy_cake/admin_track_spec.rb
soapy_cake-1.14.2 spec/integration/soapy_cake/admin_track_spec.rb
soapy_cake-1.14.1 spec/integration/soapy_cake/admin_track_spec.rb