diff --git a/spec/services/wallet_transactions/void_service_spec.rb b/spec/services/wallet_transactions/void_service_spec.rb index 6f2a58607532..affebf0404c2 100644 --- a/spec/services/wallet_transactions/void_service_spec.rb +++ b/spec/services/wallet_transactions/void_service_spec.rb @@ -80,9 +80,10 @@ end context 'when credit_note_id is passed' do - let(:credit_note_id) { create(:credit_note, organization: organization).id } subject(:void_service) { described_class.call(wallet:, credits:, credit_note_id:) } + let(:credit_note_id) { create(:credit_note, organization: organization).id } + it 'saves credit_note_id in wallet_transaction' do result = void_service wallet_transaction = result.wallet_transaction