Sha256: 6a4f96284e6acbe1c74b0b5685702b5c9b907e7f8d3fb8981c69ec998622d17e
Contents?: true
Size: 883 Bytes
Versions: 1
Compression:
Stored size: 883 Bytes
Contents
require 'spec_helper' describe Applicants::AffiliateTracking do it 'has offers id' do expect(Applicants::AffiliateTracking::HAS_OFFERS_OFFER_ID).to eq 2 end context "offer url" do it "transaction id is blank" do expect(Applicants::AffiliateTracking.has_offers_offer_url("")).to be_nil end it "generated url" do expect(Applicants::AffiliateTracking.has_offers_offer_url('sdfkd333').to_s).to eq 'http://usertesting.go2cloud.org/aff_lsr?offer_id=2&transaction_id=sdfkd333' end end context "goal url" do it "transaction id is blank" do expect(Applicants::AffiliateTracking.has_offers_goal_url("")).to be_nil end it "generated url" do expect(Applicants::AffiliateTracking.has_offers_goal_url('sdfkd333').to_s).to eq 'http://usertesting.go2cloud.org/aff_goal?a=lsr&goal_id=4&transaction_id=sdfkd333' end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
applicants-0.11.0 | spec/models/applicants/affiliate_tracking_spec.rb |