blob: 4ad110fc4d1d845533d4b2199375130376d3caf9 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
|
# 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
|