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 #1

Updated by Marius BĂLTEANU about 6 years ago

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

Updated by Marius BĂLTEANU about 6 years ago

Thanks Gregor for finding and fixing this issue.

Actions #3

Updated by Go MAEDA about 6 years 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.

Actions

Also available in: Atom PDF