Actualiza a Redmine 3.4.13

This commit is contained in:
Manuel Cillero 2020-07-03 21:39:03 +02:00
parent 807ff3308d
commit ecddcaf1d3
224 changed files with 2222 additions and 1000 deletions

View file

@ -338,6 +338,46 @@ class SearchControllerTest < Redmine::ControllerTest
assert_response 404
end
def test_search_should_include_closed_projects
@request.session[:user_id] = 1
project = Project.find(5)
project.close
project.save
# scope all
get :index, :params => {:q => 'Issue of a private subproject', :scope => 'all'}
assert_response :success
assert_select '#search-results' do
assert_select 'dt.issue', :text => /Bug #6/
end
# scope my_projects
get :index, :params => {:q => 'Issue of a private subproject', :scope => 'my_projects'}
assert_response :success
assert_select '#search-results' do
assert_select 'dt.issue', :text => /Bug #6/
end
# scope subprojects
get :index, :params => {:id => 1, :q => 'Issue of a private subproject', :scope => 'subprojects'}
assert_response :success
assert_select '#search-results' do
assert_select 'dt.issue', :text => /Bug #6/
end
# scope project
get :index, :params => {:id => 5, :q => 'Issue of a private subproject'}
assert_response :success
assert_select '#search-results' do
assert_select 'dt.issue', :text => /Bug #6/
end
end
def test_quick_jump_to_issue
# issue of a public project
get :index, :params => {:q => "3"}