Sha256: 75fb50227135fb294f37c5bdf3e2232db52288b3d31e65b27eb673e84d882c08

Contents?: true

Size: 673 Bytes

Versions: 21

Compression:

Stored size: 673 Bytes

Contents

require 'spec_helper'

describe Spree::Gateway::EwayRapid do
  let(:gateway) { described_class.create!(name: 'eWAY Rapid') }

  describe '#provider_class' do
    it 'should be an eWAY Rapid gateway' do
      expect(gateway.provider_class).to eq ::ActiveMerchant::Billing::EwayRapidGateway
    end
  end

  describe '#options' do
    it 'should flag test option if preferred_test_mode is true' do
      gateway.preferred_test_mode = true
      expect(gateway.options[:test]).to be true
    end

    it 'should unflag test option if preferred_test_mode is false' do
      gateway.preferred_test_mode = false
      expect(gateway.options[:test]).to be false
    end
  end
end

Version data entries

21 entries across 21 versions & 1 rubygems

Version Path
spree_gateway-3.9.3 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.9.2 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.9.0 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.8.0 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.7.5 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.7.4 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.7.3 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.7.2 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.7.1 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.7.0 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.6.7 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.3.7 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.6.5 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.6.4 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.3.5 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.6.1 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.6.0 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.4.1 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.4.0 spec/models/gateway/eway_rapid_spec.rb
spree_gateway-3.3.3 spec/models/gateway/eway_rapid_spec.rb