test/pagarme/resources/recipient_test.rb in pagarme-2.1.3 vs test/pagarme/resources/recipient_test.rb in pagarme-2.1.4

- old
+ new

@@ -24,10 +24,10 @@ should 'be able to search' do PagarMe::Recipient.create recipient_with_nested_bank_account_params bank_account_doc_number = bank_account_params[:document_number] - recipients = PagarMe::Recipient.find_by 'bank_account[document_number]' => bank_account_doc_number + recipients = PagarMe::Recipient.find_by bank_account: { document_number: bank_account_doc_number } assert recipients.size > 0 recipients.each do |recipient| assert_equal recipient.bank_account.document_number, bank_account_doc_number end