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
This commit is contained in:
Go MAEDA
2019-06-21 05:01:52 +00:00
parent f88ef51dc7
commit f535aa99af
2 changed files with 4 additions and 0 deletions

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

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)