Sha256: 90e5582fae7c76aed17dea8f8cde379a4de5f587a199bd7ea78fedef6a9acc1a

Contents?: true

Size: 685 Bytes

Versions: 13

Compression:

Stored size: 685 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

13 entries across 13 versions & 1 rubygems

Version Path
soapy_cake-2.1.3 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.1.2 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.1.1 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.1.0 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-2.0.0 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.26.0 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.25.2 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.25.1 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.24.1 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.23.1 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.23.0 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.22.1 spec/lib/soapy_cake/admin_track_spec.rb
soapy_cake-1.22.0 spec/lib/soapy_cake/admin_track_spec.rb