mirror of
https://github.com/redmine/redmine.git
synced 2025-10-26 07:46:17 +01:00
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:
3
test/fixtures/projects_trackers.yml
vendored
3
test/fixtures/projects_trackers.yml
vendored
@@ -44,3 +44,6 @@ projects_trackers_014:
|
|||||||
projects_trackers_015:
|
projects_trackers_015:
|
||||||
project_id: 6
|
project_id: 6
|
||||||
tracker_id: 1
|
tracker_id: 1
|
||||||
|
projects_trackers_016:
|
||||||
|
project_id: 3
|
||||||
|
tracker_id: 1
|
||||||
|
|||||||
@@ -467,6 +467,7 @@ class ProjectTest < ActiveSupport::TestCase
|
|||||||
parent = Project.find(1)
|
parent = Project.find(1)
|
||||||
parent.trackers = Tracker.find([1,2])
|
parent.trackers = Tracker.find([1,2])
|
||||||
child = parent.children.find(3)
|
child = parent.children.find(3)
|
||||||
|
child.trackers = Tracker.find([2,3])
|
||||||
|
|
||||||
assert_equal [1, 2], parent.tracker_ids
|
assert_equal [1, 2], parent.tracker_ids
|
||||||
assert_equal [2, 3], child.trackers.collect(&:id)
|
assert_equal [2, 3], child.trackers.collect(&:id)
|
||||||
|
|||||||
Reference in New Issue
Block a user