Sha256: 5201e72bf18b50e18583ec5a5f06c87880bd2b618dcc56135e0f7b7ed70d5fd8

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

require "spec_helper"

describe PayPal::AdaptivePayments::Api do
  let(:api) { PayPal::Api }
  let(:endpoints) { PayPal::AdaptivePayments::Api::API_ENDPOINTS }

  describe ".api_endpoints" do
    subject { PayPal::AdaptivePayments::Api.api_endpoint }

    context "when sandbox" do
      before { api.sandbox = true }
      it { should eql(endpoints[:sandbox]) }
    end

    context "when production" do
      before { api.sandbox = false }
      it { should eql(endpoints[:production]) }
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
paypal-payment-0.1.2 spec/paypal/adaptive_payments/api_spec.rb