Project

General

Profile

Actions

Defect #28233

closed

IssuesPdfHelperTest fails when run in isolation

Added by Gregor Schmidt about 6 years ago. Updated about 6 years ago.

Status:
Closed
Priority:
Normal
Assignee:
Category:
PDF export
Target version:
-
Start date:
Due date:
% Done:

0%

Estimated time:
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.


Files


Related issues

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

Actions
Actions

Also available in: Atom PDF