summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-24 14:40:41 +0000
committerToshi MARUYAMA <marutosijp2@yahoo.co.jp>2020-10-24 14:40:41 +0000
commit4fc83183e133ef0f68150ee82575817d524065e0 (patch)
treec97d424979435578baaaa19a699ad0f3730719e1 /test
parent07718ef6cfca4db2585a88f002d6197d6d50f913 (diff)
downloadredmine-4fc83183e133ef0f68150ee82575817d524065e0.tar.gz
redmine-4fc83183e133ef0f68150ee82575817d524065e0.zip
use with_settings at IssuesControllerTest#test_index_with_project
git-svn-id: http://svn.redmine.org/redmine/trunk@20188 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/functional/issues_controller_test.rb26
1 files changed, 13 insertions, 13 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 27bf2f3f1..66d71a5cd 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -89,23 +89,23 @@ class IssuesControllerTest < Redmine::ControllerTest
end
def test_index_with_project
- Setting.display_subprojects_issues = 0
- get(:index, :params => {:project_id => 1})
- assert_response :success
+ with_settings :display_subprojects_issues => '0' do
+ get(:index, :params => {:project_id => 1})
+ assert_response :success
- # query form
- assert_select 'form#query_form' do
- assert_select 'div#query_form_with_buttons.hide-when-print' do
- assert_select 'div#query_form_content' do
- assert_select 'fieldset#filters.collapsible'
- assert_select 'fieldset#options'
+ # query form
+ assert_select 'form#query_form' do
+ assert_select 'div#query_form_with_buttons.hide-when-print' do
+ assert_select 'div#query_form_content' do
+ assert_select 'fieldset#filters.collapsible'
+ assert_select 'fieldset#options'
+ end
+ assert_select 'p.buttons'
end
- assert_select 'p.buttons'
end
+ assert_select 'a[href="/issues/1"]', :text => /Cannot print recipes/
+ assert_select 'a[href="/issues/5"]', 0
end
-
- assert_select 'a[href="/issues/1"]', :text => /Cannot print recipes/
- assert_select 'a[href="/issues/5"]', 0
end
def test_index_with_project_and_subprojects