Patch #37470

Add missing fixture versions to MailHandlerControllerTest

Added by Dmitry Makurin 21 days ago. Updated 21 days ago.

Status:ClosedStart date:
Priority:NormalDue date:
Assignee:Go MAEDA% Done:

0%

Category:Code cleanup/refactoring
Target version:5.1.0

Description

$ bundle exec rails db:reset test TEST=test/functional/mail_handler_controller_test.rb RAILS_ENV=test
Dropped database 'db/test.sqlite3'
Created database 'db/test.sqlite3'
Run options: --seed 31332

# Running:

..F

Failure:
MailHandlerControllerTest#test_should_update_issue [/home/makurin/Work/clean-redmine/test/functional/mail_handler_controller_test.rb:88]:
"Journal.count" didn't change by 1.
Expected: 1
  Actual: 0

rails test test/functional/mail_handler_controller_test.rb:82

.....

Finished in 1.692365s, 4.7271 runs/s, 10.0451 assertions/s.
8 runs, 17 assertions, 1 failures, 0 errors, 0 skips

And in the log/test.log there is a validation error:

MailHandler: Validation failed: Target version is not included in the list

37470.patch Magnifier (727 Bytes) Dmitry Makurin , 2022-07-20 10:24


Related issues

Copied from Redmine - Patch #37469: Add missing fixture versions to RepositoryTest Closed

Associated revisions

Revision 21727
Added by Go MAEDA 21 days ago

Add missing fixture versions to MailHandlerControllerTest (#37470).

Patch by Dmitry Makurin.

History

#1 Updated by Dmitry Makurin 21 days ago

  • Copied from Patch #37469: Add missing fixture versions to RepositoryTest added

#2 Updated by Dmitry Makurin 21 days ago

#3 Updated by Go MAEDA 21 days ago

  • Category set to Code cleanup/refactoring
  • Status changed from New to Confirmed
  • Target version set to 5.1.0

#4 Updated by Go MAEDA 21 days ago

  • Tracker changed from Defect to Patch
  • Subject changed from Missing fixture in MailHandlerControllerTest to Add missing fixture versions to MailHandlerControllerTest
  • Status changed from Confirmed to Closed
  • Assignee set to Go MAEDA

Committed the fix. Thank you.

Also available in: Atom PDF