Sha256: 57da24cfb161977f4e788dc4ee1af8109d7b9066e6d698f055584d6f1d64a975

Contents?: true

Size: 550 Bytes

Versions: 16

Compression:

Stored size: 550 Bytes

Contents

module Workarea
  module UsaepayTransactionVcrGateway #[3]
    def self.included(test)
      test.setup :set_up_gateway
      test.teardown :reset_gateway
    end

    def set_up_gateway
      @_old_gateway = Workarea.config.gateways.credit_card
      Workarea.config.gateways.credit_card = ActiveMerchant::Billing::UsaEpayCustom.new( #[5]
        user: 'xxxx',
        login: 'xxxx',
        password: 'xxxx',
        test: true
      )
    end

    def reset_gateway
      Workarea.config.gateways.credit_card = @_old_gateway #[7]
    end
  end
end

Version data entries

16 entries across 16 versions & 1 rubygems

Version Path
workarea-usaepay-1.2.0 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.1.1 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.1.0 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.44 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.43 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.42 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.41 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.40 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.30 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.3 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.26 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.24 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.23 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.22 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.21 test/support/workarea/usaepay_transaction_vcr_gateway.rb
workarea-usaepay-1.0.2 test/support/workarea/usaepay_transaction_vcr_gateway.rb