Sha256: ec77a354cb12eea173dc7d1cee252b3306a0691a6b568ba39bcfc5aa1e9da227

Contents?: true

Size: 688 Bytes

Versions: 2

Compression:

Stored size: 688 Bytes

Contents

require "spec_helper"

describe Spree::PaymentMethod::SisowBilling::SisowPaymentMethod, type: :model do
  it "should respond with false when calling payment_profiles_supported?" do
    expect(subject.payment_profiles_supported?).to be false
  end

  it "should respond with true when calling auto_capture?" do
    expect(subject.auto_capture?).to be true
  end

  describe "#purchase" do
    it "should initiate a new Purchase with source" do
      sisow_transaction = double("Spree::SisowTransaction", status: "Success")
      purchase_class = Spree::PaymentMethod::SisowBilling::Purchase
      expect(subject.purchase(0, sisow_transaction, {})).to be_a purchase_class
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
spree_billing_sisow-0.9.2 spec/models/spree/payment_method/sisow_billing/sisow_payment_method_spec.rb
spree_billing_sisow-0.9.1 spec/models/spree/payment_method/sisow_billing/sisow_payment_method_spec.rb