test/pagarme/transaction.rb in pagarme-1.9.1 vs test/pagarme/transaction.rb in pagarme-1.9.2
- old
+ new
@@ -9,25 +9,10 @@
transaction.charge
assert transaction.status == 'paid'
test_transaction_response(transaction)
end
- should 'be able to simulate a boleto payment' do
- transaction = PagarMe::Transaction.new({
- :payment_method => "boleto",
- :amount => "1000"
- })
- transaction.charge
-
- assert transaction.status == 'waiting_payment'
-
- transaction.status = 'paid'
- transaction.save
-
- assert transaction.status == 'paid'
- end
-
should 'be able to refund' do
transaction = test_transaction
transaction.charge
test_transaction_response(transaction)
transaction.refund
@@ -35,10 +20,10 @@
end
should 'be able to search by anything' do
transaction = test_transaction_with_customer
transaction.charge
- transactions = PagarMe::Transaction.find_by({:customer => {:document_number => 36433809847}}, 2, 10)
+ transactions = PagarMe::Transaction.find_by({'customer[document_number]' => 36433809847}, 2, 10)
assert transactions.size == 10
transactions.each do |t|
assert t.customer.document_number == '36433809847'
end
end