summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-27 15:19:28 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-27 15:19:28 +0000
commitffaa46fea1f5c5657711ffe04dd1427ed7eb1beb (patch)
treeb57f965c1d85a97b98664d5e9dd8677ccd346385 /test/functional/issues_controller_test.rb
parente96a74b6e122adc64b08cd1d2a6fd71a19b402b5 (diff)
downloadredmine-ffaa46fea1f5c5657711ffe04dd1427ed7eb1beb.tar.gz
redmine-ffaa46fea1f5c5657711ffe04dd1427ed7eb1beb.zip
use with_settings at IssuesControllerTest#test_index_with_project_and_subprojects_should_show_private_subprojects_with_permission
git-svn-id: http://svn.redmine.org/redmine/trunk@20216 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb13
1 files changed, 7 insertions, 6 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index c46cded59..e339ed3d4 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -121,13 +121,14 @@ class IssuesControllerTest < Redmine::ControllerTest
def test_index_with_project_and_subprojects_should_show_private_subprojects_with_permission
@request.session[:user_id] = 2
- Setting.display_subprojects_issues = 1
- get(:index, :params => {:project_id => 1})
- assert_response :success
+ with_settings :display_subprojects_issues => '1' do
+ get(:index, :params => {:project_id => 1})
+ assert_response :success
- assert_select 'a[href="/issues/1"]', :text => /Cannot print recipes/
- assert_select 'a[href="/issues/5"]', :text => /Subproject issue/
- assert_select 'a[href="/issues/6"]', :text => /Issue of a private subproject/
+ assert_select 'a[href="/issues/1"]', :text => /Cannot print recipes/
+ assert_select 'a[href="/issues/5"]', :text => /Subproject issue/
+ assert_select 'a[href="/issues/6"]', :text => /Issue of a private subproject/
+ end
end
def test_index_with_project_and_default_filter