mirror of
https://github.com/redmine/redmine.git
synced 2025-11-15 09:46:02 +01:00
use with_settings at IssuesControllerTest#test_index_with_project_and_subprojects
git-svn-id: http://svn.redmine.org/redmine/trunk@20204 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -109,7 +109,7 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
end
|
||||
|
||||
def test_index_with_project_and_subprojects
|
||||
Setting.display_subprojects_issues = 1
|
||||
with_settings :display_subprojects_issues => '1' do
|
||||
get(:index, :params => {:project_id => 1})
|
||||
assert_response :success
|
||||
|
||||
@@ -117,6 +117,7 @@ class IssuesControllerTest < Redmine::ControllerTest
|
||||
assert_select 'a[href="/issues/5"]', :text => /Subproject issue/
|
||||
assert_select 'a[href="/issues/6"]', 0
|
||||
end
|
||||
end
|
||||
|
||||
def test_index_with_project_and_subprojects_should_show_private_subprojects_with_permission
|
||||
@request.session[:user_id] = 2
|
||||
|
||||
Reference in New Issue
Block a user