Sha256: 5c46d16d86f81e02f60a63195cdaa0ceefd6999393c145b3ea4a59f6c286d9bd

Contents?: true

Size: 766 Bytes

Versions: 33

Compression:

Stored size: 766 Bytes

Contents

require 'spec_helper'

describe Spree::Gateway::AuthorizeNetCim do
  let (:gateway) { described_class.new }

  context '.provider_class' do
    it 'is a AuthorizeNetCim gateway' do
      expect(gateway.provider_class).to eq ::Spree::Gateway::AuthorizeNetCim
    end
  end

  context '.payment_profiles_supported?' do
    it 'return true' do
      expect(subject.payment_profiles_supported?).to be true
    end
  end

  describe 'options' do
    it 'include :test => true when test server is "test"' do
      gateway.preferred_server = "test"
      expect(gateway.options[:test]).to be true
    end

    it 'does not include :test when test server is "live"' do
      gateway.preferred_server = "live"
      expect(gateway.options[:test]).to be_nil
    end
  end
end

Version data entries

33 entries across 33 versions & 2 rubygems

Version Path
spree_gateway-3.11.0 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.10.0 spec/models/gateway/authorize_net_cim_spec.rb
archetype_spree_gateway-3.9.5.1 spec/models/gateway/authorize_net_cim_spec.rb
archetype_spree_gateway-3.9.5 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.9.4 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.9.3 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.9.2 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.9.0 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.8.0 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.7.5 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.7.4 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.7.3 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.7.2 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.7.1 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.7.0 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.6.7 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.3.7 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.6.5 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.6.4 spec/models/gateway/authorize_net_cim_spec.rb
spree_gateway-3.3.5 spec/models/gateway/authorize_net_cim_spec.rb