Sha256: 1e0a1aa6111e996d8e82f29c9342a5e620f641867712305519cea71557232e3f

Contents?: true

Size: 689 Bytes

Versions: 1

Compression:

Stored size: 689 Bytes

Contents

require 'spec_helper'

describe Applicants::AffiliateTrackingController do
  describe "#fire" do
    it 'fire off api calls' do
      Net::HTTP.should_receive(:get).twice
      Applicants::AffiliateTracking.should_receive(:has_offers_offer_url)
      Applicants::AffiliateTracking.should_receive(:has_offers_goal_url)
      get :fire, transaction_id: "kdkdkdkd939393939"
      response.should be_success
    end

    it "do not fire if there is no transaction_id" do
      Applicants::AffiliateTracking.should_not_receive(:has_offers_offer_url)
      Applicants::AffiliateTracking.should_not_receive(:has_offers_goal_url)
      get :fire
      response.should be_success
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
applicants-0.11.0 spec/controllers/applicants/affiliate_tracking_controller_spec.rb