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