require 'spec_helper' describe Spree::Gateway::PayflowPro do let(:gateway) { described_class.create!(name: 'PayflowPro') } context '.provider_class' do it 'is a Payflow gateway' do expect(gateway.provider_class).to eq ::ActiveMerchant::Billing::PayflowGateway 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