Sha256: c3d3562f64fa98ff1bc9de2c22e348823a4bb8214fcc0a4003f93fdea3526b45

Contents?: true

Size: 447 Bytes

Versions: 7

Compression:

Stored size: 447 Bytes

Contents

# frozen_string_literal: true

RSpec.describe SolidusSubscriptions::Dispatcher::OutOfStockDispatcher do
  describe '#dispatch' do
    it 'marks the installment as out of stock' do
      installment = instance_spy(SolidusSubscriptions::Installment)
      order = build_stubbed(:order)

      dispatcher = described_class.new(installment, order)
      dispatcher.dispatch

      expect(installment).to have_received(:out_of_stock)
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
solidus_subscriptions-2.0.2 spec/lib/solidus_subscriptions/dispatcher/out_of_stock_dispatcher_spec.rb
solidus_subscriptions-2.0.1 spec/lib/solidus_subscriptions/dispatcher/out_of_stock_dispatcher_spec.rb
solidus_subscriptions-2.0.0 spec/lib/solidus_subscriptions/dispatcher/out_of_stock_dispatcher_spec.rb
solidus_subscriptions-1.1.0 spec/lib/solidus_subscriptions/dispatcher/out_of_stock_dispatcher_spec.rb
solidus_subscriptions-1.0.1 spec/lib/solidus_subscriptions/dispatcher/out_of_stock_dispatcher_spec.rb
solidus_subscriptions-1.0.0 spec/lib/solidus_subscriptions/dispatcher/out_of_stock_dispatcher_spec.rb
solidus_subscriptions-1.0.0.rc1 spec/lib/solidus_subscriptions/dispatcher/out_of_stock_dispatcher_spec.rb