Redmine 4.1.1

This commit is contained in:
Manuel Cillero 2020-11-22 21:20:06 +01:00
parent 33e7b881a5
commit 3d976f1b3b
1593 changed files with 36180 additions and 19489 deletions

View file

@ -1,5 +1,7 @@
# frozen_string_literal: true
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
# Copyright (C) 2006-2019 Jean-Philippe Lang
#
# This program is free software; you can redistribute it and/or
# modify it under the terms of the GNU General Public License
@ -42,10 +44,10 @@ class SearchControllerTest < Redmine::ControllerTest
assert_select '#search-results dt.project a', :text => /eCookbook/
end
def test_search_on_archived_project_should_return_404
def test_search_on_archived_project_should_return_403
Project.find(3).archive
get :index, :params => {:id => 3}
assert_response 404
assert_response 403
end
def test_search_on_invisible_project_by_user_should_be_denied
@ -408,7 +410,7 @@ class SearchControllerTest < Redmine::ControllerTest
end
def test_results_should_be_escaped_once
assert Issue.find(1).update_attributes(:subject => '<subject> escaped_once', :description => '<description> escaped_once')
assert Issue.find(1).update(:subject => '<subject> escaped_once', :description => '<description> escaped_once')
get :index, :params => {:q => 'escaped_once'}
assert_response :success
assert_select '#search-results' do
@ -418,7 +420,7 @@ class SearchControllerTest < Redmine::ControllerTest
end
def test_keywords_should_be_highlighted
assert Issue.find(1).update_attributes(:subject => 'subject highlighted', :description => 'description highlighted')
assert Issue.find(1).update(:subject => 'subject highlighted', :description => 'description highlighted')
get :index, :params => {:q => 'highlighted'}
assert_response :success
assert_select '#search-results' do