У меня есть такой пример:
it 'does not change payment status, cancellation reason, or output cancellation message' do
expect { job }
.not_to change { payment.reload.payment_status }.from('transferring')
.and change { payment.reload.cancellation_reason }.from(nil)
.and output(/Платёж #{payment.uuid} отменён/).to_stdout
end