use with_settings at IssuesControllerTest#test_show_should_not_disclose_relations_to_invisible_issues

git-svn-id: http://svn.redmine.org/redmine/trunk@20167 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
Toshi MARUYAMA
2020-10-22 14:18:44 +00:00
parent 0470d27d0d
commit 5280861cf3

View File

@@ -2261,7 +2261,7 @@ class IssuesControllerTest < Redmine::ControllerTest
end
def test_show_should_not_disclose_relations_to_invisible_issues
Setting.cross_project_issue_relations = '1'
with_settings :cross_project_issue_relations => '1' do
IssueRelation.
create!(
:issue_from => Issue.find(1),
@@ -2282,6 +2282,7 @@ class IssuesControllerTest < Redmine::ControllerTest
assert_select 'a', :text => /#4$/, :count => 0
end
end
end
def test_show_should_list_subtasks
Issue.