Sha256: 3ddc28a7159ddd5df87071c73971fd87669d726bd7594c04bf2ee8858a70b812

Contents?: true

Size: 495 Bytes

Versions: 3

Compression:

Stored size: 495 Bytes

Contents

require 'rails_helper'

module Spree
  module SolidusSixSaferpay
    RSpec.describe AuthorizeTransaction do

      let(:payment) { create(:six_saferpay_payment) }

      subject { described_class.new(payment) }


      describe '#gateway' do
        it_behaves_like "it uses the transaction gateway"
      end

      describe '#call' do
        let(:api_response_class) { SixSaferpay::SixTransaction::AuthorizeResponse }
        it_behaves_like "authorize_payment"
      end


    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
solidus_six_saferpay-0.5.0 spec/services/spree/solidus_six_saferpay/authorize_transaction_spec.rb
solidus_six_saferpay-0.4.0 spec/services/spree/solidus_six_saferpay/authorize_transaction_spec.rb
solidus_six_saferpay-0.3.0 spec/services/spree/solidus_six_saferpay/authorize_transaction_spec.rb