Sha256: fe75462084f3be87df1770d89657381e3a01195cb5de58c03fe944b312f37412

Contents?: true

Size: 472 Bytes

Versions: 12

Compression:

Stored size: 472 Bytes

Contents

require 'spec_helper'

module Spree
  describe Gateway::Bogus, type: :model do
    let(:bogus) { create(:credit_card_payment_method) }
    let!(:cc) { create(:credit_card, payment_method: bogus, gateway_customer_profile_id: "BGS-RERTERT") }

    it "disable recurring contract by destroying payment source" do
      Spree::Deprecation.silence do
        bogus.disable_customer_profile(cc)
      end
      expect(cc.gateway_customer_profile_id).to be_nil
    end
  end
end

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
solidus_core-2.0.3 spec/models/spree/gateway/bogus_spec.rb
solidus_core-1.4.2 spec/models/spree/gateway/bogus_spec.rb
solidus_core-2.0.2 spec/models/spree/gateway/bogus_spec.rb
solidus_core-1.4.1 spec/models/spree/gateway/bogus_spec.rb
solidus_core-2.0.1 spec/models/spree/gateway/bogus_spec.rb
solidus_core-2.1.0.beta1 spec/models/spree/gateway/bogus_spec.rb
solidus_core-2.0.0 spec/models/spree/gateway/bogus_spec.rb
solidus_core-1.4.0 spec/models/spree/gateway/bogus_spec.rb
solidus_core-2.0.0.rc1 spec/models/spree/gateway/bogus_spec.rb
solidus_core-1.4.0.rc1 spec/models/spree/gateway/bogus_spec.rb
solidus_core-2.0.0.beta1 spec/models/spree/gateway/bogus_spec.rb
solidus_core-1.4.0.beta1 spec/models/spree/gateway/bogus_spec.rb