Sha256: c17599013432358317f647dbef194dbfa1fabd34044b8971c9cffe145e54ccc4
Contents?: true
Size: 653 Bytes
Versions: 1
Compression:
Stored size: 653 Bytes
Contents
require 'spec_helper' describe Spree::Gateway::PayJunction do let(:gateway) { described_class.create!(name: 'PayJunction') } context '.provider_class' do it 'is a PayJunction gateway' do expect(gateway.provider_class).to eq ::ActiveMerchant::Billing::PayJunctionGateway end end describe 'options' do it 'include :test => true in 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/pay_junction_spec.rb |