Browse Source

Some issue fixtures are set inconsistent tracker id which is not available in the project (#31053).

Patch by Mizuki ISHIKAWA.


git-svn-id: http://svn.redmine.org/redmine/trunk@18309 e93f8b46-1217-0410-a6f0-8f06a7374b81
tags/4.1.0
Go MAEDA 4 years ago
parent
commit
f535aa99af
2 changed files with 4 additions and 0 deletions
  1. 3
    0
      test/fixtures/projects_trackers.yml
  2. 1
    0
      test/unit/project_test.rb

+ 3
- 0
test/fixtures/projects_trackers.yml View File

@@ -44,3 +44,6 @@ projects_trackers_014:
projects_trackers_015:
project_id: 6
tracker_id: 1
projects_trackers_016:
project_id: 3
tracker_id: 1

+ 1
- 0
test/unit/project_test.rb View File

@@ -467,6 +467,7 @@ class ProjectTest < ActiveSupport::TestCase
parent = Project.find(1)
parent.trackers = Tracker.find([1,2])
child = parent.children.find(3)
child.trackers = Tracker.find([2,3])

assert_equal [1, 2], parent.tracker_ids
assert_equal [2, 3], child.trackers.collect(&:id)

Loading…
Cancel
Save