Sha256: 9f8ef51af92da0a50ce95ed992667fe03888bd6e91d8849d2d6a0f8278c31562

Contents?: true

Size: 492 Bytes

Versions: 3

Compression:

Stored size: 492 Bytes

Contents

require 'rails_helper'

module Spree
  module SolidusSixSaferpay
    RSpec.describe InquirePaymentPagePayment do

      let(:payment) { create(:six_saferpay_payment) }
      subject { described_class.new(payment) }

      describe '#gateway' do
        it_behaves_like "it uses the payment page gateway"
      end

      describe '#call' do
        let(:api_response_class) { SixSaferpay::SixPaymentPage::AssertResponse }
        it_behaves_like "inquire_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/inquire_payment_page_payment_spec.rb
solidus_six_saferpay-0.4.0 spec/services/spree/solidus_six_saferpay/inquire_payment_page_payment_spec.rb
solidus_six_saferpay-0.3.0 spec/services/spree/solidus_six_saferpay/inquire_payment_page_payment_spec.rb