test/pagarme/resources/transaction_test.rb in pagarme-2.3.0 vs test/pagarme/resources/transaction_test.rb in pagarme-2.4.0

- old
+ new

@@ -47,11 +47,11 @@ transaction.refund assert_equal transaction.status, 'refunded' end should 'be able to create transaction with boleto' do - transaction = PagarMe::Transaction.charge transaction_with_boleto_params + transaction = PagarMe::Transaction.charge transaction_with_customer_with_boleto_params assert_transaction_with_bolelo_on_waiting_payment transaction end should 'be able to send and retrieve metadata' do metadata = { @@ -87,10 +87,10 @@ PagarMe::Transaction.find_by_id '' end end should 'require parameters on the refund with boleto' do - transaction = PagarMe::Transaction.create transaction_with_boleto_params + transaction = PagarMe::Transaction.create transaction_with_customer_with_boleto_params assert_equal transaction.status, 'waiting_payment' assert_raises(PagarMe::ValidationError){ transaction.refund } assert_raises(PagarMe::ValidationError){ transaction.refund refund_bank_account_params } assert_equal transaction.status, 'waiting_payment'