Patch #37451

Add missing fixture versions to IssuesPdfHelperTest

Added by Go MAEDA 25 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

IssuesPdfHelperTest randomly fails due to a missing fixture.

$ RAILS_ENV=test bin/rake db:reset
Dropped database 'db/test.sqlite3'
Created database 'db/test.sqlite3'
$ bin/rails test test/unit/lib/redmine/export/pdf/issues_pdf_test.rb:40
Run options: --seed 27822

# Running:

E

Error:
IssuesPdfHelperTest#test_fetch_row_values_should_be_able_to_handle_parent_issue_subject:
ActiveRecord::RecordInvalid: Validation failed: Target version is not included in the list
    test/unit/lib/redmine/export/pdf/issues_pdf_test.rb:45:in `test_fetch_row_values_should_be_able_to_handle_parent_issue_subject'

rails test test/unit/lib/redmine/export/pdf/issues_pdf_test.rb:40

missing-fixture-IssuesPdfHelperTest.patch Magnifier (666 Bytes) Go MAEDA, 2022-07-17 02:13

Associated revisions

Revision 21710
Added by Go MAEDA 25 days ago

Add missing fixture to IssuesPdfHelperTest (#37451).

History

#1 Updated by Go MAEDA 25 days ago

  • Status changed from New to Closed
  • Assignee set to Go MAEDA

Committed the fix.

#2 Updated by Go MAEDA 21 days ago

  • Subject changed from Add missing fixture to IssuesPdfHelperTest to Add missing fixture versions to IssuesPdfHelperTest

Also available in: Atom PDF