Defect #28233

IssuesPdfHelperTest fails when run in isolation

Added by Gregor Schmidt over 1 year ago. Updated over 1 year ago.

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

0%

Category:PDF export
Target version:-
Resolution:Fixed Affected version:

Description

The IssuesPdfHelperTest test fails, when starting it in isolation. It's missing the neccessary fixture definitions. Depending on the random test order, this might also lead to errors, when running the whole test suite.

Steps to reproduce:

RAILS_ENV=test rake db:drop db:create
rake db:test:prepare
ruby -Itest test/unit/lib/redmine/export/pdf/issues_pdf_test.rb

The attached patch adds the required fixture declarations and fixes the test failure.

0001-Add-minimal-fixture-for-issues_pdf_test.patch Magnifier (970 Bytes) Gregor Schmidt, 2018-02-22 11:22


Related issues

Related to Redmine - Defect #12510: Issues PDF export: Spent time/Float-values aren't rounded... Closed

History

#1 Updated by Marius BALTEANU over 1 year ago

  • Related to Defect #12510: Issues PDF export: Spent time/Float-values aren't rounded to 2 digits added

#2 Updated by Marius BALTEANU over 1 year ago

Thanks Gregor for finding and fixing this issue.

#3 Updated by Go MAEDA over 1 year ago

  • Category set to PDF export
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Resolution set to Fixed

Committed as r17212. Thank you.

Also available in: Atom PDF