Sha256: 1d58addd5dd660842894ed8f9334b2cbdbea85944c6e1c8ed4a12df48c252a38

Contents?: true

Size: 655 Bytes

Versions: 9

Compression:

Stored size: 655 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 '#update_conversion' do
    let(:service) { :track }
    let(:cake_method) { :update_conversion }
    let(:method) { :update_conversion }
    let(:cake_opts) { described_class::CONVERSION_DEFAULTS.merge(opts) }
    let(:opts) { { offer_id: 42, payout: 0 } }

    it_behaves_like 'a cake admin method'
  end
end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
soapy_cake-1.21.0 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.20.0 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.19.0 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.18.1 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.18.0 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.16.2 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.16.1 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.16.0 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.15.0 spec/lib/soapy_cake/admin_track_spec.rb