Sha256: 75e050f9e09942fec7844d6ac29107d1bb0e6d48c41d5f4b9cfa9d660cec3a1e

Contents?: true

Size: 686 Bytes

Versions: 8

Compression:

Stored size: 686 Bytes

Contents

# frozen_string_literal: true

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

8 entries across 8 versions & 1 rubygems

Version Path
soapy_cake-2.2.6 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.2.5 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.2.4 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.2.3 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.2.1 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.1.6 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.1.5 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.1.4 spec/lib/soapy_cake/admin_track_spec.rb