Project

General

Profile

Actions

Defect #29820

closed

Missing fixture enabled_modules in TrackerTest

Added by Gilad Shanan over 5 years ago. Updated over 5 years ago.

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

0%

Estimated time:
Resolution:
Fixed
Affected version:

Description

It looks like test/unit/tracker_test.rb has an unspecified dependency on the :enabled_modules fixture. To reproduce:

bundle exec rake db:test:prepare
bundle exec rake test TEST=test/unit/tracker_test.rb

=>
TrackerTest#test_visible_scope_chained_with_project_rolled_up_trackers [/home/circleci/tablexi/xi-redmine/test/unit/tracker_test.rb:40]:
Expected: [2]
  Actual: []

Environment:
  Redmine version                3.4.6.devel
  Ruby version                   2.4.1-p111 (2017-03-22) [x86_64-darwin17]
  Rails version                  5.2.1
  Environment                    production
  Database adapter               Mysql2
  Mailer queue                   ActiveJob::QueueAdapters::AsyncAdapter
  Mailer delivery                smtp
Redmine plugins:
  no plugin installed

The spec passes when the :enabled_modules fixture is specified.


Files

add-enabled-modules-fixture.diff (846 Bytes) add-enabled-modules-fixture.diff Gilad Shanan, 2018-10-19 21:06
Actions #1

Updated by Go MAEDA over 5 years ago

  • Subject changed from Spurious spec failure in tracker_test.rb to Missing fixture enabled_modules in TrackerTest
  • Category set to Code cleanup/refactoring
  • Status changed from New to Closed
  • Assignee set to Go MAEDA
  • Target version set to 4.0.0
  • Resolution set to Fixed

Committed the patch. Thank you for reporting this issue.

Actions #2

Updated by Gilad Shanan over 5 years ago

Go MAEDA wrote:

Committed the patch. Thank you for reporting this issue.

Happy to be able to contribute.

Actions

Also available in: Atom PDF