mirror of
https://github.com/LaCasemate/fab-manager.git
synced 2025-01-29 18:52:22 +01:00
test invoice wallet amount
This commit is contained in:
parent
50ba15b5bf
commit
85153c201e
@ -282,6 +282,7 @@ module Reservations
|
||||
transaction = @vlonchamp.wallet.wallet_transactions.last
|
||||
assert_equal transaction.transaction_type, 'debit'
|
||||
assert_equal transaction.amount, 10
|
||||
assert_equal transaction.amount, invoice.wallet_amount / 100.0
|
||||
end
|
||||
|
||||
test "user without subscription and with invoicing disabled reserves a machine and pay wallet with success" do
|
||||
|
@ -361,6 +361,7 @@ module Reservations
|
||||
transaction = @vlonchamp.wallet.wallet_transactions.last
|
||||
assert_equal transaction.transaction_type, 'debit'
|
||||
assert_equal transaction.amount, 10
|
||||
assert_equal transaction.amount, invoice.wallet_amount / 100.0
|
||||
end
|
||||
end
|
||||
end
|
||||
|
@ -140,5 +140,6 @@ class Subscriptions::CreateAsUserTest < ActionDispatch::IntegrationTest
|
||||
transaction = @vlonchamp.wallet.wallet_transactions.last
|
||||
assert_equal transaction.transaction_type, 'debit'
|
||||
assert_equal transaction.amount, 10
|
||||
assert_equal transaction.amount, invoice.wallet_amount / 100.0
|
||||
end
|
||||
end
|
||||
|
Loading…
x
Reference in New Issue
Block a user