diff options
author | Go MAEDA <maeda@farend.jp> | 2019-06-21 05:01:52 +0000 |
---|---|---|
committer | Go MAEDA <maeda@farend.jp> | 2019-06-21 05:01:52 +0000 |
commit | f535aa99afdcd25c4692292adf7b246894ed89de (patch) | |
tree | b6931b92db237797a87eb61d92ac9d09c471c4f0 /test | |
parent | f88ef51dc7f27dd31c7c158978fd36d3d80538d7 (diff) | |
download | redmine-f535aa99afdcd25c4692292adf7b246894ed89de.tar.gz redmine-f535aa99afdcd25c4692292adf7b246894ed89de.zip |
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
Diffstat (limited to 'test')
-rw-r--r-- | test/fixtures/projects_trackers.yml | 3 | ||||
-rw-r--r-- | test/unit/project_test.rb | 1 |
2 files changed, 4 insertions, 0 deletions
diff --git a/test/fixtures/projects_trackers.yml b/test/fixtures/projects_trackers.yml index cf454dca4..54443fa0b 100644 --- a/test/fixtures/projects_trackers.yml +++ b/test/fixtures/projects_trackers.yml @@ -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 diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb index e2c25d8f9..7922b6e9a 100644 --- a/test/unit/project_test.rb +++ b/test/unit/project_test.rb @@ -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) |