Sha256: fc4ed4fb06208c908022ea6558a8849151bc4c3bc7cb06960b8df7cae543deb4
Contents?: true
Size: 655 Bytes
Versions: 1
Compression:
Stored size: 655 Bytes
Contents
require 'spec_helper' describe Spree::Gateway::AuthorizeNet do let (:gateway) { described_class.create!(name: 'Authorize.net') } context '.provider_class' do it 'is a AuthorizeNet gateway' do expect(gateway.provider_class).to eq ::ActiveMerchant::Billing::AuthorizeNetGateway end end describe 'options' do it 'include :test => true when :test_mode is true' do gateway.preferred_test_mode = true expect(gateway.options[:test]).to be_true end it 'does not include :test when test_mode is false' do gateway.preferred_test_mode = false expect(gateway.options[:test]).to be_false end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
spree_gateway-2.2.1 | spec/models/gateway/authorize_net_spec.rb |