Project

General

Profile

Actions

Patch #37470

closed

Add missing fixture versions to MailHandlerControllerTest

Added by Dmitry Makurin over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
Code cleanup/refactoring
Target version:
Start date:
Due date:
% Done:

0%

Estimated time:

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

Files

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

Related issues

Copied from Redmine - Patch #37469: Add missing fixture versions to RepositoryTestClosedGo MAEDA

Actions
Actions #1

Updated by Dmitry Makurin over 2 years ago

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

Updated by Go MAEDA over 2 years ago

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

Updated by Go MAEDA over 2 years 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.

Actions

Also available in: Atom PDF