Created
June 11, 2021 03:13
-
-
Save patrickclery/d0a29bd19081344617294e5984774e23 to your computer and use it in GitHub Desktop.
test/models/payment_agreement_test.rb fails (possibly due to after 7pm)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Failure: | |
PaymentAgreement::#agreement::payment from frontend::fails#test_0001_does not send an email [/home/circleci/project/app/models/debt.rb:302] | |
Minitest::Assertion: unexpected invocation: #<AnyInstance:PaymentAgreement(id: uuid, debtor_id: uuid, duration: integer, frequency: integer, start_date: datetime, end_date: datetime, status: string, deleted_at: datetime, created_at: datetime, updated_at: datetime, organization_id: uuid, first_payment_amount: decimal, average_payment_amount: decimal, items_count: integer, payment_method_id: uuid, base_start_date: datetime, status_changed_at: datetime, debt_id: uuid)>.send_agreement_message() | |
unsatisfied expectations: | |
- expected never, invoked once: #<AnyInstance:PaymentAgreement(id: uuid, debtor_id: uuid, duration: integer, frequency: integer, start_date: datetime, end_date: datetime, status: string, deleted_at: datetime, created_at: datetime, updated_at: datetime, organization_id: uuid, first_payment_amount: decimal, average_payment_amount: decimal, items_count: integer, payment_method_id: uuid, base_start_date: datetime, status_changed_at: datetime, debt_id: uuid)>.send_agreement_message(any_parameters) | |
Error: | |
PaymentAgreement::failing a payment#test_0001_fails the current agreement: | |
Debt::ArgumentError: invalid payment | |
app/models/debt.rb:486:in `error' | |
app/models/debt.rb:101:in `fail' | |
app/models/concerns/bang_methods.rb:22:in `block in method_missing' | |
app/models/concerns/bang_methods.rb:20:in `yield_self' | |
app/models/concerns/bang_methods.rb:20:in `method_missing' | |
test/models/payment_agreement_test.rb:89:in `block (3 levels) in <main>' | |
1152 tests, 2501 assertions, 1 failures, 1 errors, 4 skips |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment