]> source.dussan.org Git - redmine.git/commitdiff
Some issue fixtures are set inconsistent tracker id which is not available in the...
authorGo MAEDA <maeda@farend.jp>
Fri, 21 Jun 2019 05:01:52 +0000 (05:01 +0000)
committerGo MAEDA <maeda@farend.jp>
Fri, 21 Jun 2019 05:01:52 +0000 (05:01 +0000)
Patch by Mizuki ISHIKAWA.

git-svn-id: http://svn.redmine.org/redmine/trunk@18309 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/fixtures/projects_trackers.yml
test/unit/project_test.rb

index cf454dca496de17f27e32791f2bce67329abd9db..54443fa0b012775c65df5bda206098dec17c3b41 100644 (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
index e2c25d8f94da0b616339db8b7161456e4ab47f8d..7922b6e9adff61d8001f7ddaeee91f63eed1c4ff 100644 (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)