diff --git a/spec/lib/active_outbox/outboxable_spec.rb b/spec/lib/active_outbox/outboxable_spec.rb index ea0eb54..97ef978 100644 --- a/spec/lib/active_outbox/outboxable_spec.rb +++ b/spec/lib/active_outbox/outboxable_spec.rb @@ -113,12 +113,12 @@ before do # active_outbox = instance_double(ActiveOutbox) # allow(ActiveOutbox).to receive(:new).and_return(active_outbox) + # byebug allow(ActiveOutbox.configuration).to receive(:outbox_mapping).and_return({ 'default' => nil }) end - it 'raises an error' do - expect { save_instance }.to raise_error(ActiveOutbox::OutboxClassNotFoundError) - end + include_examples 'raises an error and does not create neither the record nor the outbox record', + ActiveOutbox::OutboxClassNotFoundError end end