summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorGo MAEDA <maeda@farend.jp>2019-03-15 01:32:57 +0000
committerGo MAEDA <maeda@farend.jp>2019-03-15 01:32:57 +0000
commit5861160ffc350a97b5ff41465fbd7e03008853e4 (patch)
treead260a758b0c88c42debd6b567d6cd382d27ae42 /test
parent9f4a4be01a48eb2cbb30f8786aee3b9fec830f19 (diff)
downloadredmine-5861160ffc350a97b5ff41465fbd7e03008853e4.tar.gz
redmine-5861160ffc350a97b5ff41465fbd7e03008853e4.zip
Add "frozen_string_literal: false" for all files (#26561).
This will be changed to true in the future. git-svn-id: http://svn.redmine.org/redmine/trunk@17947 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test')
-rw-r--r--test/application_system_test_case.rb2
-rw-r--r--test/coverage/html_formatter.rb2
-rw-r--r--test/extra/redmine_pm/repository_git_test_pm.rb2
-rw-r--r--test/extra/redmine_pm/repository_subversion_test_pm.rb2
-rw-r--r--test/extra/redmine_pm/test_case.rb2
-rw-r--r--test/fixtures/files/2006/07/060719210727_source.rb2
-rw-r--r--test/functional/account_controller_openid_test.rb2
-rw-r--r--test/functional/account_controller_test.rb2
-rw-r--r--test/functional/activities_controller_test.rb2
-rw-r--r--test/functional/admin_controller_test.rb2
-rw-r--r--test/functional/attachments_controller_test.rb2
-rw-r--r--test/functional/attachments_visibility_test.rb2
-rw-r--r--test/functional/auth_sources_controller_test.rb2
-rw-r--r--test/functional/auto_completes_controller_test.rb2
-rw-r--r--test/functional/boards_controller_test.rb2
-rw-r--r--test/functional/calendars_controller_test.rb2
-rw-r--r--test/functional/comments_controller_test.rb2
-rw-r--r--test/functional/context_menus_controller_test.rb2
-rw-r--r--test/functional/custom_field_enumerations_controller_test.rb2
-rw-r--r--test/functional/custom_fields_controller_test.rb2
-rw-r--r--test/functional/documents_controller_test.rb2
-rw-r--r--test/functional/email_addresses_controller_test.rb2
-rw-r--r--test/functional/enumerations_controller_test.rb2
-rw-r--r--test/functional/files_controller_test.rb2
-rw-r--r--test/functional/gantts_controller_test.rb2
-rw-r--r--test/functional/groups_controller_test.rb2
-rw-r--r--test/functional/imports_controller_test.rb2
-rw-r--r--test/functional/issue_categories_controller_test.rb2
-rw-r--r--test/functional/issue_relations_controller_test.rb2
-rw-r--r--test/functional/issue_statuses_controller_test.rb2
-rw-r--r--test/functional/issues_controller_test.rb2
-rw-r--r--test/functional/issues_controller_transaction_test.rb2
-rw-r--r--test/functional/issues_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/journals_controller_test.rb2
-rw-r--r--test/functional/mail_handler_controller_test.rb2
-rw-r--r--test/functional/members_controller_test.rb2
-rw-r--r--test/functional/messages_controller_test.rb2
-rw-r--r--test/functional/my_controller_test.rb2
-rw-r--r--test/functional/news_controller_test.rb2
-rw-r--r--test/functional/previews_controller_test.rb2
-rw-r--r--test/functional/principal_memberships_controller_test.rb2
-rw-r--r--test/functional/project_enumerations_controller_test.rb2
-rw-r--r--test/functional/projects_controller_test.rb2
-rw-r--r--test/functional/queries_controller_test.rb2
-rw-r--r--test/functional/reports_controller_test.rb2
-rw-r--r--test/functional/repositories_bazaar_controller_test.rb2
-rw-r--r--test/functional/repositories_controller_test.rb2
-rw-r--r--test/functional/repositories_cvs_controller_test.rb2
-rw-r--r--test/functional/repositories_filesystem_controller_test.rb2
-rw-r--r--test/functional/repositories_git_controller_test.rb2
-rw-r--r--test/functional/repositories_mercurial_controller_test.rb2
-rw-r--r--test/functional/repositories_subversion_controller_test.rb2
-rw-r--r--test/functional/roles_controller_test.rb2
-rw-r--r--test/functional/search_controller_test.rb2
-rw-r--r--test/functional/search_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/sessions_controller_test.rb2
-rw-r--r--test/functional/settings_controller_test.rb2
-rw-r--r--test/functional/sys_controller_test.rb2
-rw-r--r--test/functional/timelog_controller_test.rb2
-rw-r--r--test/functional/timelog_custom_fields_visibility_test.rb2
-rw-r--r--test/functional/timelog_report_test.rb2
-rw-r--r--test/functional/trackers_controller_test.rb2
-rw-r--r--test/functional/users_controller_test.rb2
-rw-r--r--test/functional/versions_controller_test.rb2
-rw-r--r--test/functional/watchers_controller_test.rb2
-rw-r--r--test/functional/welcome_controller_test.rb2
-rw-r--r--test/functional/wiki_controller_test.rb2
-rw-r--r--test/functional/wikis_controller_test.rb2
-rw-r--r--test/functional/workflows_controller_test.rb2
-rw-r--r--test/helpers/activities_helper_test.rb2
-rw-r--r--test/helpers/application_helper_test.rb2
-rw-r--r--test/helpers/custom_fields_helper_test.rb2
-rw-r--r--test/helpers/groups_helper_test.rb2
-rw-r--r--test/helpers/issues_helper_test.rb2
-rw-r--r--test/helpers/journals_helper_test.rb2
-rw-r--r--test/helpers/members_helper_test.rb2
-rw-r--r--test/helpers/projects_helper_test.rb2
-rw-r--r--test/helpers/queries_helper_test.rb2
-rw-r--r--test/helpers/routes_helper_test.rb2
-rw-r--r--test/helpers/search_helper_test.rb2
-rw-r--r--test/helpers/settings_helper_test.rb2
-rw-r--r--test/helpers/sort_helper_test.rb2
-rw-r--r--test/helpers/timelog_helper_test.rb2
-rw-r--r--test/helpers/version_helper_test.rb2
-rw-r--r--test/helpers/watchers_helper_test.rb2
-rw-r--r--test/helpers/wiki_helper_test.rb2
-rw-r--r--test/integration/account_test.rb2
-rw-r--r--test/integration/admin_test.rb2
-rw-r--r--test/integration/api_test/api_routing_test.rb2
-rw-r--r--test/integration/api_test/api_test.rb2
-rw-r--r--test/integration/api_test/attachments_test.rb2
-rw-r--r--test/integration/api_test/authentication_test.rb2
-rw-r--r--test/integration/api_test/custom_fields_attribute_test.rb2
-rw-r--r--test/integration/api_test/custom_fields_test.rb2
-rw-r--r--test/integration/api_test/disabled_rest_api_test.rb2
-rw-r--r--test/integration/api_test/enumerations_test.rb2
-rw-r--r--test/integration/api_test/files_test.rb2
-rw-r--r--test/integration/api_test/groups_test.rb2
-rw-r--r--test/integration/api_test/issue_categories_test.rb2
-rw-r--r--test/integration/api_test/issue_relations_test.rb2
-rw-r--r--test/integration/api_test/issue_statuses_test.rb2
-rw-r--r--test/integration/api_test/issues_test.rb2
-rw-r--r--test/integration/api_test/jsonp_test.rb2
-rw-r--r--test/integration/api_test/memberships_test.rb2
-rw-r--r--test/integration/api_test/news_test.rb2
-rw-r--r--test/integration/api_test/projects_test.rb2
-rw-r--r--test/integration/api_test/queries_test.rb2
-rw-r--r--test/integration/api_test/roles_test.rb2
-rw-r--r--test/integration/api_test/search_test.rb2
-rw-r--r--test/integration/api_test/time_entries_test.rb2
-rw-r--r--test/integration/api_test/trackers_test.rb2
-rw-r--r--test/integration/api_test/users_test.rb2
-rw-r--r--test/integration/api_test/versions_test.rb2
-rw-r--r--test/integration/api_test/wiki_pages_test.rb2
-rw-r--r--test/integration/application_test.rb2
-rw-r--r--test/integration/attachments_test.rb2
-rw-r--r--test/integration/feeds_test.rb2
-rw-r--r--test/integration/issues_test.rb2
-rw-r--r--test/integration/layout_test.rb2
-rw-r--r--test/integration/lib/redmine/field_format/attachment_format_test.rb2
-rw-r--r--test/integration/lib/redmine/hook_test.rb2
-rw-r--r--test/integration/lib/redmine/menu_manager_test.rb2
-rw-r--r--test/integration/lib/redmine/themes_test.rb2
-rw-r--r--test/integration/projects_test.rb2
-rw-r--r--test/integration/repositories_git_test.rb2
-rw-r--r--test/integration/routing/account_test.rb2
-rw-r--r--test/integration/routing/activities_test.rb2
-rw-r--r--test/integration/routing/admin_test.rb2
-rw-r--r--test/integration/routing/attachments_test.rb2
-rw-r--r--test/integration/routing/auth_sources_test.rb2
-rw-r--r--test/integration/routing/auto_completes_test.rb2
-rw-r--r--test/integration/routing/boards_test.rb2
-rw-r--r--test/integration/routing/calendars_test.rb2
-rw-r--r--test/integration/routing/comments_test.rb2
-rw-r--r--test/integration/routing/context_menus_test.rb2
-rw-r--r--test/integration/routing/custom_fields_test.rb2
-rw-r--r--test/integration/routing/documents_test.rb2
-rw-r--r--test/integration/routing/enumerations_test.rb2
-rw-r--r--test/integration/routing/files_test.rb2
-rw-r--r--test/integration/routing/gantts_test.rb2
-rw-r--r--test/integration/routing/groups_test.rb2
-rw-r--r--test/integration/routing/imports_test.rb2
-rw-r--r--test/integration/routing/issue_categories_test.rb2
-rw-r--r--test/integration/routing/issue_relations_test.rb2
-rw-r--r--test/integration/routing/issue_statuses_test.rb2
-rw-r--r--test/integration/routing/issues_test.rb2
-rw-r--r--test/integration/routing/journals_test.rb2
-rw-r--r--test/integration/routing/mail_handler_test.rb2
-rw-r--r--test/integration/routing/members_test.rb2
-rw-r--r--test/integration/routing/messages_test.rb2
-rw-r--r--test/integration/routing/my_test.rb2
-rw-r--r--test/integration/routing/news_test.rb2
-rw-r--r--test/integration/routing/previews_test.rb2
-rw-r--r--test/integration/routing/principal_memberships_test.rb2
-rw-r--r--test/integration/routing/project_enumerations_test.rb2
-rw-r--r--test/integration/routing/projects_test.rb2
-rw-r--r--test/integration/routing/queries_test.rb2
-rw-r--r--test/integration/routing/reports_test.rb2
-rw-r--r--test/integration/routing/repositories_test.rb2
-rw-r--r--test/integration/routing/roles_test.rb2
-rw-r--r--test/integration/routing/search_test.rb2
-rw-r--r--test/integration/routing/settings_test.rb2
-rw-r--r--test/integration/routing/sys_test.rb2
-rw-r--r--test/integration/routing/timelog_test.rb2
-rw-r--r--test/integration/routing/trackers_test.rb2
-rw-r--r--test/integration/routing/users_test.rb2
-rw-r--r--test/integration/routing/versions_test.rb2
-rw-r--r--test/integration/routing/watchers_test.rb2
-rw-r--r--test/integration/routing/welcome_test.rb2
-rw-r--r--test/integration/routing/wiki_test.rb2
-rw-r--r--test/integration/routing/wikis_test.rb2
-rw-r--r--test/integration/routing/workflows_test.rb2
-rw-r--r--test/integration/sessions_test.rb2
-rw-r--r--test/integration/sudo_mode_test.rb2
-rw-r--r--test/integration/users_test.rb2
-rw-r--r--test/integration/welcome_test.rb2
-rw-r--r--test/mocks/open_id_authentication_mock.rb2
-rw-r--r--test/object_helpers.rb2
-rw-r--r--test/system/issues_import_test.rb2
-rw-r--r--test/system/issues_test.rb2
-rw-r--r--test/system/my_page_test.rb2
-rw-r--r--test/system/quick_jump_test.rb2
-rw-r--r--test/system/sudo_mode_test.rb2
-rw-r--r--test/system/timelog_test.rb2
-rw-r--r--test/test_helper.rb2
-rw-r--r--test/unit/activity_test.rb2
-rw-r--r--test/unit/attachment_test.rb2
-rw-r--r--test/unit/attachment_transaction_test.rb2
-rw-r--r--test/unit/auth_source_ldap_test.rb2
-rw-r--r--test/unit/board_test.rb2
-rw-r--r--test/unit/changeset_test.rb2
-rw-r--r--test/unit/comment_test.rb2
-rw-r--r--test/unit/custom_field_test.rb2
-rw-r--r--test/unit/custom_field_user_format_test.rb2
-rw-r--r--test/unit/custom_field_version_format_test.rb2
-rw-r--r--test/unit/custom_value_test.rb2
-rw-r--r--test/unit/default_data_test.rb2
-rw-r--r--test/unit/document_category_test.rb2
-rw-r--r--test/unit/document_test.rb2
-rw-r--r--test/unit/enabled_module_test.rb2
-rw-r--r--test/unit/enumeration_test.rb2
-rw-r--r--test/unit/group_test.rb2
-rw-r--r--test/unit/initializers/patches_test.rb2
-rw-r--r--test/unit/issue_category_test.rb2
-rw-r--r--test/unit/issue_custom_field_test.rb2
-rw-r--r--test/unit/issue_import_test.rb2
-rw-r--r--test/unit/issue_nested_set_concurrency_test.rb2
-rw-r--r--test/unit/issue_nested_set_test.rb2
-rw-r--r--test/unit/issue_priority_test.rb2
-rw-r--r--test/unit/issue_relation_test.rb2
-rw-r--r--test/unit/issue_scopes_test.rb2
-rw-r--r--test/unit/issue_status_test.rb2
-rw-r--r--test/unit/issue_subtasking_test.rb2
-rw-r--r--test/unit/issue_test.rb2
-rw-r--r--test/unit/issue_transaction_test.rb2
-rw-r--r--test/unit/journal_observer_test.rb2
-rw-r--r--test/unit/journal_test.rb2
-rw-r--r--test/unit/lib/redmine/access_control_test.rb2
-rw-r--r--test/unit/lib/redmine/acts/positioned_with_scope_test.rb2
-rw-r--r--test/unit/lib/redmine/acts/positioned_without_scope_test.rb2
-rw-r--r--test/unit/lib/redmine/ciphering_test.rb2
-rw-r--r--test/unit/lib/redmine/codeset_util_test.rb2
-rw-r--r--test/unit/lib/redmine/configuration_test.rb2
-rw-r--r--test/unit/lib/redmine/export/csv_test.rb2
-rw-r--r--test/unit/lib/redmine/export/pdf/issues_pdf_test.rb2
-rw-r--r--test/unit/lib/redmine/export/pdf_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/attachment_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/bool_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/enumeration_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/field_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/link_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/list_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/numeric_format_test.rb72
-rw-r--r--test/unit/lib/redmine/field_format/user_field_format_test.rb2
-rw-r--r--test/unit/lib/redmine/field_format/version_field_format_test.rb2
-rw-r--r--test/unit/lib/redmine/helpers/calendar_test.rb2
-rw-r--r--test/unit/lib/redmine/helpers/diff_test.rb76
-rw-r--r--test/unit/lib/redmine/helpers/gantt_test.rb2
-rw-r--r--test/unit/lib/redmine/helpers/url_test.rb2
-rw-r--r--test/unit/lib/redmine/hook_test.rb2
-rw-r--r--test/unit/lib/redmine/i18n_test.rb2
-rw-r--r--test/unit/lib/redmine/info_test.rb2
-rw-r--r--test/unit/lib/redmine/menu_manager/mapper_test.rb2
-rw-r--r--test/unit/lib/redmine/menu_manager/menu_helper_test.rb2
-rw-r--r--test/unit/lib/redmine/menu_manager/menu_item_test.rb2
-rw-r--r--test/unit/lib/redmine/menu_manager_test.rb2
-rw-r--r--test/unit/lib/redmine/mime_type_test.rb2
-rw-r--r--test/unit/lib/redmine/notifiable_test.rb2
-rw-r--r--test/unit/lib/redmine/pagination_helper_test.rb2
-rw-r--r--test/unit/lib/redmine/pagination_test.rb2
-rw-r--r--test/unit/lib/redmine/plugin_test.rb2
-rw-r--r--test/unit/lib/redmine/safe_attributes_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/git_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb2
-rw-r--r--test/unit/lib/redmine/themes_test.rb2
-rw-r--r--test/unit/lib/redmine/unified_diff_test.rb2
-rw-r--r--test/unit/lib/redmine/utils/date_calculation.rb2
-rw-r--r--test/unit/lib/redmine/views/builders/json_test.rb2
-rw-r--r--test/unit/lib/redmine/views/builders/xml_test.rb2
-rw-r--r--test/unit/lib/redmine/views/labelled_form_builder_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/html_parser_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/macros_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb2
-rw-r--r--test/unit/lib/redmine/wiki_formatting_test.rb2
-rw-r--r--test/unit/lib/redmine_test.rb2
-rw-r--r--test/unit/mail_handler_test.rb2
-rw-r--r--test/unit/mailer_localisation_test.rb2
-rw-r--r--test/unit/mailer_test.rb2
-rw-r--r--test/unit/member_test.rb2
-rw-r--r--test/unit/message_test.rb2
-rw-r--r--test/unit/news_test.rb2
-rw-r--r--test/unit/principal_test.rb2
-rw-r--r--test/unit/project_copy_test.rb2
-rw-r--r--test/unit/project_members_inheritance_test.rb2
-rw-r--r--test/unit/project_nested_set_concurrency_test.rb2
-rw-r--r--test/unit/project_nested_set_test.rb2
-rw-r--r--test/unit/project_test.rb2
-rw-r--r--test/unit/query_test.rb2
-rw-r--r--test/unit/repository_bazaar_test.rb2
-rw-r--r--test/unit/repository_cvs_test.rb2
-rw-r--r--test/unit/repository_filesystem_test.rb2
-rw-r--r--test/unit/repository_git_test.rb2
-rw-r--r--test/unit/repository_mercurial_test.rb2
-rw-r--r--test/unit/repository_subversion_test.rb2
-rw-r--r--test/unit/repository_test.rb2
-rw-r--r--test/unit/role_test.rb2
-rw-r--r--test/unit/search_test.rb2
-rw-r--r--test/unit/setting_test.rb2
-rw-r--r--test/unit/time_entry_activity_test.rb2
-rw-r--r--test/unit/time_entry_query_test.rb2
-rw-r--r--test/unit/time_entry_test.rb2
-rw-r--r--test/unit/token_test.rb2
-rw-r--r--test/unit/tracker_test.rb2
-rw-r--r--test/unit/user_preference_test.rb2
-rw-r--r--test/unit/user_test.rb2
-rw-r--r--test/unit/version_test.rb2
-rw-r--r--test/unit/watcher_test.rb2
-rw-r--r--test/unit/wiki_content_test.rb2
-rw-r--r--test/unit/wiki_content_version_test.rb2
-rw-r--r--test/unit/wiki_page_test.rb2
-rw-r--r--test/unit/wiki_redirect_test.rb2
-rw-r--r--test/unit/wiki_test.rb2
-rw-r--r--test/unit/workflow_test.rb2
-rw-r--r--test/unit/workflow_transition_test.rb2
312 files changed, 696 insertions, 72 deletions
diff --git a/test/application_system_test_case.rb b/test/application_system_test_case.rb
index 09dc1520a..ed697eb4b 100644
--- a/test/application_system_test_case.rb
+++ b/test/application_system_test_case.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/coverage/html_formatter.rb b/test/coverage/html_formatter.rb
index e8564a816..be33d7706 100644
--- a/test/coverage/html_formatter.rb
+++ b/test/coverage/html_formatter.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/extra/redmine_pm/repository_git_test_pm.rb b/test/extra/redmine_pm/repository_git_test_pm.rb
index d96508c5b..32c436c12 100644
--- a/test/extra/redmine_pm/repository_git_test_pm.rb
+++ b/test/extra/redmine_pm/repository_git_test_pm.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/extra/redmine_pm/repository_subversion_test_pm.rb b/test/extra/redmine_pm/repository_subversion_test_pm.rb
index da7a0c4c2..b65bd49be 100644
--- a/test/extra/redmine_pm/repository_subversion_test_pm.rb
+++ b/test/extra/redmine_pm/repository_subversion_test_pm.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/extra/redmine_pm/test_case.rb b/test/extra/redmine_pm/test_case.rb
index 1235c2a70..ebfa50dfe 100644
--- a/test/extra/redmine_pm/test_case.rb
+++ b/test/extra/redmine_pm/test_case.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/fixtures/files/2006/07/060719210727_source.rb b/test/fixtures/files/2006/07/060719210727_source.rb
index dccb59165..6b6fafbd7 100644
--- a/test/fixtures/files/2006/07/060719210727_source.rb
+++ b/test/fixtures/files/2006/07/060719210727_source.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# The Greeter class
class Greeter
def initialize(name)
diff --git a/test/functional/account_controller_openid_test.rb b/test/functional/account_controller_openid_test.rb
index afa46cdf6..87b316722 100644
--- a/test/functional/account_controller_openid_test.rb
+++ b/test/functional/account_controller_openid_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/account_controller_test.rb b/test/functional/account_controller_test.rb
index fbeb457b1..48e6a61d3 100644
--- a/test/functional/account_controller_test.rb
+++ b/test/functional/account_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/activities_controller_test.rb b/test/functional/activities_controller_test.rb
index 385b95c72..7c346b104 100644
--- a/test/functional/activities_controller_test.rb
+++ b/test/functional/activities_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/admin_controller_test.rb b/test/functional/admin_controller_test.rb
index 3050d753d..005807354 100644
--- a/test/functional/admin_controller_test.rb
+++ b/test/functional/admin_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/attachments_controller_test.rb b/test/functional/attachments_controller_test.rb
index 4fd009a4f..618871ba2 100644
--- a/test/functional/attachments_controller_test.rb
+++ b/test/functional/attachments_controller_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/functional/attachments_visibility_test.rb b/test/functional/attachments_visibility_test.rb
index c4b8aec0b..e2350e55d 100644
--- a/test/functional/attachments_visibility_test.rb
+++ b/test/functional/attachments_visibility_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/functional/auth_sources_controller_test.rb b/test/functional/auth_sources_controller_test.rb
index adc6c1a22..a4a86bfa6 100644
--- a/test/functional/auth_sources_controller_test.rb
+++ b/test/functional/auth_sources_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/auto_completes_controller_test.rb b/test/functional/auto_completes_controller_test.rb
index 4be188140..77d2672e1 100644
--- a/test/functional/auto_completes_controller_test.rb
+++ b/test/functional/auto_completes_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/boards_controller_test.rb b/test/functional/boards_controller_test.rb
index c010d8866..83bc0d181 100644
--- a/test/functional/boards_controller_test.rb
+++ b/test/functional/boards_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/calendars_controller_test.rb b/test/functional/calendars_controller_test.rb
index da9db3d64..07acb50ed 100644
--- a/test/functional/calendars_controller_test.rb
+++ b/test/functional/calendars_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/comments_controller_test.rb b/test/functional/comments_controller_test.rb
index cdd75f977..6fc1d4d1b 100644
--- a/test/functional/comments_controller_test.rb
+++ b/test/functional/comments_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/context_menus_controller_test.rb b/test/functional/context_menus_controller_test.rb
index aeaf7391a..4a6b070d3 100644
--- a/test/functional/context_menus_controller_test.rb
+++ b/test/functional/context_menus_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/custom_field_enumerations_controller_test.rb b/test/functional/custom_field_enumerations_controller_test.rb
index 080f5638d..9b08cc10a 100644
--- a/test/functional/custom_field_enumerations_controller_test.rb
+++ b/test/functional/custom_field_enumerations_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/custom_fields_controller_test.rb b/test/functional/custom_fields_controller_test.rb
index b9030db69..6c75136d6 100644
--- a/test/functional/custom_fields_controller_test.rb
+++ b/test/functional/custom_fields_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/documents_controller_test.rb b/test/functional/documents_controller_test.rb
index 3adb1d8cd..ce43b5097 100644
--- a/test/functional/documents_controller_test.rb
+++ b/test/functional/documents_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/email_addresses_controller_test.rb b/test/functional/email_addresses_controller_test.rb
index 5a31fafbd..46781d6ed 100644
--- a/test/functional/email_addresses_controller_test.rb
+++ b/test/functional/email_addresses_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/enumerations_controller_test.rb b/test/functional/enumerations_controller_test.rb
index 8e411c53e..5abe45d8f 100644
--- a/test/functional/enumerations_controller_test.rb
+++ b/test/functional/enumerations_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/files_controller_test.rb b/test/functional/files_controller_test.rb
index 03c194e53..f4e28a267 100644
--- a/test/functional/files_controller_test.rb
+++ b/test/functional/files_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/gantts_controller_test.rb b/test/functional/gantts_controller_test.rb
index cf11f9d66..a8bd3c609 100644
--- a/test/functional/gantts_controller_test.rb
+++ b/test/functional/gantts_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/groups_controller_test.rb b/test/functional/groups_controller_test.rb
index 6cdf5009d..6edcbffdf 100644
--- a/test/functional/groups_controller_test.rb
+++ b/test/functional/groups_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/imports_controller_test.rb b/test/functional/imports_controller_test.rb
index 2802d1524..a4e5f1bf0 100644
--- a/test/functional/imports_controller_test.rb
+++ b/test/functional/imports_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issue_categories_controller_test.rb b/test/functional/issue_categories_controller_test.rb
index 472b92d22..760fe4a5b 100644
--- a/test/functional/issue_categories_controller_test.rb
+++ b/test/functional/issue_categories_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issue_relations_controller_test.rb b/test/functional/issue_relations_controller_test.rb
index 1842786d5..15ef829d9 100644
--- a/test/functional/issue_relations_controller_test.rb
+++ b/test/functional/issue_relations_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issue_statuses_controller_test.rb b/test/functional/issue_statuses_controller_test.rb
index 1825960a0..abf67959d 100644
--- a/test/functional/issue_statuses_controller_test.rb
+++ b/test/functional/issue_statuses_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 047c98782..1d11eac73 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issues_controller_transaction_test.rb b/test/functional/issues_controller_transaction_test.rb
index 28ac868b3..081c3fdfb 100644
--- a/test/functional/issues_controller_transaction_test.rb
+++ b/test/functional/issues_controller_transaction_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/issues_custom_fields_visibility_test.rb b/test/functional/issues_custom_fields_visibility_test.rb
index b1a666706..adae13134 100644
--- a/test/functional/issues_custom_fields_visibility_test.rb
+++ b/test/functional/issues_custom_fields_visibility_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/journals_controller_test.rb b/test/functional/journals_controller_test.rb
index 336f67848..21bf73533 100644
--- a/test/functional/journals_controller_test.rb
+++ b/test/functional/journals_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/mail_handler_controller_test.rb b/test/functional/mail_handler_controller_test.rb
index 707373942..e8a12abe0 100644
--- a/test/functional/mail_handler_controller_test.rb
+++ b/test/functional/mail_handler_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/members_controller_test.rb b/test/functional/members_controller_test.rb
index 11460aa7a..f6fb49153 100644
--- a/test/functional/members_controller_test.rb
+++ b/test/functional/members_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/messages_controller_test.rb b/test/functional/messages_controller_test.rb
index 715258fe1..fdfb44084 100644
--- a/test/functional/messages_controller_test.rb
+++ b/test/functional/messages_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/my_controller_test.rb b/test/functional/my_controller_test.rb
index d8db74ff6..d864f22f1 100644
--- a/test/functional/my_controller_test.rb
+++ b/test/functional/my_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/news_controller_test.rb b/test/functional/news_controller_test.rb
index 951405763..df5282155 100644
--- a/test/functional/news_controller_test.rb
+++ b/test/functional/news_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/previews_controller_test.rb b/test/functional/previews_controller_test.rb
index 5512cff2d..12a5140e0 100644
--- a/test/functional/previews_controller_test.rb
+++ b/test/functional/previews_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/principal_memberships_controller_test.rb b/test/functional/principal_memberships_controller_test.rb
index 5320ae6e6..36e856adc 100644
--- a/test/functional/principal_memberships_controller_test.rb
+++ b/test/functional/principal_memberships_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/project_enumerations_controller_test.rb b/test/functional/project_enumerations_controller_test.rb
index 3fa579a3d..4a8069c5e 100644
--- a/test/functional/project_enumerations_controller_test.rb
+++ b/test/functional/project_enumerations_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/projects_controller_test.rb b/test/functional/projects_controller_test.rb
index 3c931c60b..41d2a275a 100644
--- a/test/functional/projects_controller_test.rb
+++ b/test/functional/projects_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/queries_controller_test.rb b/test/functional/queries_controller_test.rb
index 9b094ab97..203e80c37 100644
--- a/test/functional/queries_controller_test.rb
+++ b/test/functional/queries_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/reports_controller_test.rb b/test/functional/reports_controller_test.rb
index c1b60bcdd..1ce71ecb7 100644
--- a/test/functional/reports_controller_test.rb
+++ b/test/functional/reports_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_bazaar_controller_test.rb b/test/functional/repositories_bazaar_controller_test.rb
index 33b506444..43c68ccef 100644
--- a/test/functional/repositories_bazaar_controller_test.rb
+++ b/test/functional/repositories_bazaar_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_controller_test.rb b/test/functional/repositories_controller_test.rb
index 8338b8987..ae1ccab6e 100644
--- a/test/functional/repositories_controller_test.rb
+++ b/test/functional/repositories_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_cvs_controller_test.rb b/test/functional/repositories_cvs_controller_test.rb
index d2b12386d..00a752a5b 100644
--- a/test/functional/repositories_cvs_controller_test.rb
+++ b/test/functional/repositories_cvs_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_filesystem_controller_test.rb b/test/functional/repositories_filesystem_controller_test.rb
index 38e0f8ba9..b90c3695a 100644
--- a/test/functional/repositories_filesystem_controller_test.rb
+++ b/test/functional/repositories_filesystem_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_git_controller_test.rb b/test/functional/repositories_git_controller_test.rb
index 0142f2be5..648362c40 100644
--- a/test/functional/repositories_git_controller_test.rb
+++ b/test/functional/repositories_git_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_mercurial_controller_test.rb b/test/functional/repositories_mercurial_controller_test.rb
index f7ba7038b..a58ba7e3e 100644
--- a/test/functional/repositories_mercurial_controller_test.rb
+++ b/test/functional/repositories_mercurial_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/repositories_subversion_controller_test.rb b/test/functional/repositories_subversion_controller_test.rb
index e9de476a4..effd93ab3 100644
--- a/test/functional/repositories_subversion_controller_test.rb
+++ b/test/functional/repositories_subversion_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/roles_controller_test.rb b/test/functional/roles_controller_test.rb
index f401d51d9..5f28b898f 100644
--- a/test/functional/roles_controller_test.rb
+++ b/test/functional/roles_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/search_controller_test.rb b/test/functional/search_controller_test.rb
index f5b52b2b4..1f99abf68 100644
--- a/test/functional/search_controller_test.rb
+++ b/test/functional/search_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/search_custom_fields_visibility_test.rb b/test/functional/search_custom_fields_visibility_test.rb
index ab2af8434..960aff591 100644
--- a/test/functional/search_custom_fields_visibility_test.rb
+++ b/test/functional/search_custom_fields_visibility_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/sessions_controller_test.rb b/test/functional/sessions_controller_test.rb
index 0698e41c5..ec38a8de1 100644
--- a/test/functional/sessions_controller_test.rb
+++ b/test/functional/sessions_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/settings_controller_test.rb b/test/functional/settings_controller_test.rb
index 2215aa385..b8411023c 100644
--- a/test/functional/settings_controller_test.rb
+++ b/test/functional/settings_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/sys_controller_test.rb b/test/functional/sys_controller_test.rb
index 4278015df..838ba1cd2 100644
--- a/test/functional/sys_controller_test.rb
+++ b/test/functional/sys_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/timelog_controller_test.rb b/test/functional/timelog_controller_test.rb
index 67b596744..0e58698b9 100644
--- a/test/functional/timelog_controller_test.rb
+++ b/test/functional/timelog_controller_test.rb
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/timelog_custom_fields_visibility_test.rb b/test/functional/timelog_custom_fields_visibility_test.rb
index 042414315..41da3c22a 100644
--- a/test/functional/timelog_custom_fields_visibility_test.rb
+++ b/test/functional/timelog_custom_fields_visibility_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/timelog_report_test.rb b/test/functional/timelog_report_test.rb
index 6d053b55d..5019abda9 100644
--- a/test/functional/timelog_report_test.rb
+++ b/test/functional/timelog_report_test.rb
@@ -1,4 +1,6 @@
# -*- coding: utf-8 -*-
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/trackers_controller_test.rb b/test/functional/trackers_controller_test.rb
index cd6fcce13..d9d3f696f 100644
--- a/test/functional/trackers_controller_test.rb
+++ b/test/functional/trackers_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/users_controller_test.rb b/test/functional/users_controller_test.rb
index 603b7b9e2..b43d01214 100644
--- a/test/functional/users_controller_test.rb
+++ b/test/functional/users_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/versions_controller_test.rb b/test/functional/versions_controller_test.rb
index 3d5af8dd3..abe1f646d 100644
--- a/test/functional/versions_controller_test.rb
+++ b/test/functional/versions_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/watchers_controller_test.rb b/test/functional/watchers_controller_test.rb
index fb96e99b1..e586411f5 100644
--- a/test/functional/watchers_controller_test.rb
+++ b/test/functional/watchers_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/welcome_controller_test.rb b/test/functional/welcome_controller_test.rb
index 8f486c219..186af1ee2 100644
--- a/test/functional/welcome_controller_test.rb
+++ b/test/functional/welcome_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/wiki_controller_test.rb b/test/functional/wiki_controller_test.rb
index f8c50b481..149675258 100644
--- a/test/functional/wiki_controller_test.rb
+++ b/test/functional/wiki_controller_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/functional/wikis_controller_test.rb b/test/functional/wikis_controller_test.rb
index 2570f4bfd..f4d482c6e 100644
--- a/test/functional/wikis_controller_test.rb
+++ b/test/functional/wikis_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/functional/workflows_controller_test.rb b/test/functional/workflows_controller_test.rb
index 45d50bba0..93a8a34de 100644
--- a/test/functional/workflows_controller_test.rb
+++ b/test/functional/workflows_controller_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/activities_helper_test.rb b/test/helpers/activities_helper_test.rb
index b4a03369a..50e4d46df 100644
--- a/test/helpers/activities_helper_test.rb
+++ b/test/helpers/activities_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb
index bfefc1052..2fcbaf7f0 100644
--- a/test/helpers/application_helper_test.rb
+++ b/test/helpers/application_helper_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/helpers/custom_fields_helper_test.rb b/test/helpers/custom_fields_helper_test.rb
index ed0daa03a..7827fa844 100644
--- a/test/helpers/custom_fields_helper_test.rb
+++ b/test/helpers/custom_fields_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/groups_helper_test.rb b/test/helpers/groups_helper_test.rb
index 1cdc4fadb..933f6e81b 100644
--- a/test/helpers/groups_helper_test.rb
+++ b/test/helpers/groups_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/issues_helper_test.rb b/test/helpers/issues_helper_test.rb
index 6908d5128..61ec5bd74 100644
--- a/test/helpers/issues_helper_test.rb
+++ b/test/helpers/issues_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/journals_helper_test.rb b/test/helpers/journals_helper_test.rb
index b9bec9200..8e75bb04e 100644
--- a/test/helpers/journals_helper_test.rb
+++ b/test/helpers/journals_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/members_helper_test.rb b/test/helpers/members_helper_test.rb
index fa482f591..e26a99ace 100644
--- a/test/helpers/members_helper_test.rb
+++ b/test/helpers/members_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/projects_helper_test.rb b/test/helpers/projects_helper_test.rb
index 356f6c03e..116f215e1 100644
--- a/test/helpers/projects_helper_test.rb
+++ b/test/helpers/projects_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/queries_helper_test.rb b/test/helpers/queries_helper_test.rb
index 8cce2625b..a880a92f6 100644
--- a/test/helpers/queries_helper_test.rb
+++ b/test/helpers/queries_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/routes_helper_test.rb b/test/helpers/routes_helper_test.rb
index 961b02a76..0069ac8b4 100644
--- a/test/helpers/routes_helper_test.rb
+++ b/test/helpers/routes_helper_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/helpers/search_helper_test.rb b/test/helpers/search_helper_test.rb
index dbaa857db..af483775c 100644
--- a/test/helpers/search_helper_test.rb
+++ b/test/helpers/search_helper_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/helpers/settings_helper_test.rb b/test/helpers/settings_helper_test.rb
index 42cee99c3..6aa9fb5a1 100644
--- a/test/helpers/settings_helper_test.rb
+++ b/test/helpers/settings_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/sort_helper_test.rb b/test/helpers/sort_helper_test.rb
index 0dac9b495..586a5d125 100644
--- a/test/helpers/sort_helper_test.rb
+++ b/test/helpers/sort_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/timelog_helper_test.rb b/test/helpers/timelog_helper_test.rb
index 4bc225a14..9c7ecd8be 100644
--- a/test/helpers/timelog_helper_test.rb
+++ b/test/helpers/timelog_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/version_helper_test.rb b/test/helpers/version_helper_test.rb
index 372b65aa8..1800388f0 100644
--- a/test/helpers/version_helper_test.rb
+++ b/test/helpers/version_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/watchers_helper_test.rb b/test/helpers/watchers_helper_test.rb
index 9e544ecac..109ac746b 100644
--- a/test/helpers/watchers_helper_test.rb
+++ b/test/helpers/watchers_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/helpers/wiki_helper_test.rb b/test/helpers/wiki_helper_test.rb
index 4d872402b..74ab03473 100644
--- a/test/helpers/wiki_helper_test.rb
+++ b/test/helpers/wiki_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/account_test.rb b/test/integration/account_test.rb
index 4f0a45156..c16f58b59 100644
--- a/test/integration/account_test.rb
+++ b/test/integration/account_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/admin_test.rb b/test/integration/admin_test.rb
index e7f6f0eea..7809d0872 100644
--- a/test/integration/admin_test.rb
+++ b/test/integration/admin_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/api_routing_test.rb b/test/integration/api_test/api_routing_test.rb
index ef45d6c63..fefe242ca 100644
--- a/test/integration/api_test/api_routing_test.rb
+++ b/test/integration/api_test/api_routing_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/api_test.rb b/test/integration/api_test/api_test.rb
index 469876f61..cdf841c9c 100644
--- a/test/integration/api_test/api_test.rb
+++ b/test/integration/api_test/api_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/attachments_test.rb b/test/integration/api_test/attachments_test.rb
index 5095a9504..f469a5132 100644
--- a/test/integration/api_test/attachments_test.rb
+++ b/test/integration/api_test/attachments_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/authentication_test.rb b/test/integration/api_test/authentication_test.rb
index f1c2e9e79..f7a791c77 100644
--- a/test/integration/api_test/authentication_test.rb
+++ b/test/integration/api_test/authentication_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/custom_fields_attribute_test.rb b/test/integration/api_test/custom_fields_attribute_test.rb
index 4335bbfa4..b08f93c42 100644
--- a/test/integration/api_test/custom_fields_attribute_test.rb
+++ b/test/integration/api_test/custom_fields_attribute_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/custom_fields_test.rb b/test/integration/api_test/custom_fields_test.rb
index 90bd6e5c6..51b400878 100644
--- a/test/integration/api_test/custom_fields_test.rb
+++ b/test/integration/api_test/custom_fields_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/disabled_rest_api_test.rb b/test/integration/api_test/disabled_rest_api_test.rb
index f0283ba34..311ae6bf9 100644
--- a/test/integration/api_test/disabled_rest_api_test.rb
+++ b/test/integration/api_test/disabled_rest_api_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/enumerations_test.rb b/test/integration/api_test/enumerations_test.rb
index bae17e361..a5b31f851 100644
--- a/test/integration/api_test/enumerations_test.rb
+++ b/test/integration/api_test/enumerations_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/files_test.rb b/test/integration/api_test/files_test.rb
index b6ecc0139..6879b02da 100644
--- a/test/integration/api_test/files_test.rb
+++ b/test/integration/api_test/files_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/groups_test.rb b/test/integration/api_test/groups_test.rb
index de6906ff4..5a70e8cfe 100644
--- a/test/integration/api_test/groups_test.rb
+++ b/test/integration/api_test/groups_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/issue_categories_test.rb b/test/integration/api_test/issue_categories_test.rb
index a1fd70f3f..f033b3391 100644
--- a/test/integration/api_test/issue_categories_test.rb
+++ b/test/integration/api_test/issue_categories_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/issue_relations_test.rb b/test/integration/api_test/issue_relations_test.rb
index 913322e84..0665145d7 100644
--- a/test/integration/api_test/issue_relations_test.rb
+++ b/test/integration/api_test/issue_relations_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/issue_statuses_test.rb b/test/integration/api_test/issue_statuses_test.rb
index 7e37ddba6..c7ed78c73 100644
--- a/test/integration/api_test/issue_statuses_test.rb
+++ b/test/integration/api_test/issue_statuses_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/issues_test.rb b/test/integration/api_test/issues_test.rb
index 207374823..cefc96a66 100644
--- a/test/integration/api_test/issues_test.rb
+++ b/test/integration/api_test/issues_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/jsonp_test.rb b/test/integration/api_test/jsonp_test.rb
index 3a148e08b..307033e64 100644
--- a/test/integration/api_test/jsonp_test.rb
+++ b/test/integration/api_test/jsonp_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/memberships_test.rb b/test/integration/api_test/memberships_test.rb
index 95e10d18f..dacedc779 100644
--- a/test/integration/api_test/memberships_test.rb
+++ b/test/integration/api_test/memberships_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/news_test.rb b/test/integration/api_test/news_test.rb
index 2f96162a2..de11190bf 100644
--- a/test/integration/api_test/news_test.rb
+++ b/test/integration/api_test/news_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/projects_test.rb b/test/integration/api_test/projects_test.rb
index b804e8d00..0664fbb2a 100644
--- a/test/integration/api_test/projects_test.rb
+++ b/test/integration/api_test/projects_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/queries_test.rb b/test/integration/api_test/queries_test.rb
index 176f74657..e147e0c83 100644
--- a/test/integration/api_test/queries_test.rb
+++ b/test/integration/api_test/queries_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/roles_test.rb b/test/integration/api_test/roles_test.rb
index 0694faa64..72c4e4585 100644
--- a/test/integration/api_test/roles_test.rb
+++ b/test/integration/api_test/roles_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/search_test.rb b/test/integration/api_test/search_test.rb
index 2c14ed4ac..65d4654d8 100644
--- a/test/integration/api_test/search_test.rb
+++ b/test/integration/api_test/search_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/time_entries_test.rb b/test/integration/api_test/time_entries_test.rb
index 832a45d73..d369e757f 100644
--- a/test/integration/api_test/time_entries_test.rb
+++ b/test/integration/api_test/time_entries_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/trackers_test.rb b/test/integration/api_test/trackers_test.rb
index df2a6edd1..d29f288c4 100644
--- a/test/integration/api_test/trackers_test.rb
+++ b/test/integration/api_test/trackers_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/users_test.rb b/test/integration/api_test/users_test.rb
index 9847ca477..8a8031ffa 100644
--- a/test/integration/api_test/users_test.rb
+++ b/test/integration/api_test/users_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/versions_test.rb b/test/integration/api_test/versions_test.rb
index 144ef531b..048eddaf0 100644
--- a/test/integration/api_test/versions_test.rb
+++ b/test/integration/api_test/versions_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/api_test/wiki_pages_test.rb b/test/integration/api_test/wiki_pages_test.rb
index 89b6dac1b..fb3f095d6 100644
--- a/test/integration/api_test/wiki_pages_test.rb
+++ b/test/integration/api_test/wiki_pages_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/application_test.rb b/test/integration/application_test.rb
index 7990b4265..d1ecb2619 100644
--- a/test/integration/application_test.rb
+++ b/test/integration/application_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/attachments_test.rb b/test/integration/attachments_test.rb
index 0b3bf1862..446ec79d2 100644
--- a/test/integration/attachments_test.rb
+++ b/test/integration/attachments_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/feeds_test.rb b/test/integration/feeds_test.rb
index 192c289d3..f0c33490a 100644
--- a/test/integration/feeds_test.rb
+++ b/test/integration/feeds_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/issues_test.rb b/test/integration/issues_test.rb
index ddcdd0f49..50271845b 100644
--- a/test/integration/issues_test.rb
+++ b/test/integration/issues_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/layout_test.rb b/test/integration/layout_test.rb
index 08e7214ce..5f83e8d90 100644
--- a/test/integration/layout_test.rb
+++ b/test/integration/layout_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/lib/redmine/field_format/attachment_format_test.rb b/test/integration/lib/redmine/field_format/attachment_format_test.rb
index a01149d01..eeeb2b909 100644
--- a/test/integration/lib/redmine/field_format/attachment_format_test.rb
+++ b/test/integration/lib/redmine/field_format/attachment_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/lib/redmine/hook_test.rb b/test/integration/lib/redmine/hook_test.rb
index 9318cab09..71eac69c9 100644
--- a/test/integration/lib/redmine/hook_test.rb
+++ b/test/integration/lib/redmine/hook_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/lib/redmine/menu_manager_test.rb b/test/integration/lib/redmine/menu_manager_test.rb
index eb81d9cf4..89ebd2a99 100644
--- a/test/integration/lib/redmine/menu_manager_test.rb
+++ b/test/integration/lib/redmine/menu_manager_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/lib/redmine/themes_test.rb b/test/integration/lib/redmine/themes_test.rb
index a37e9d16d..ff24c478a 100644
--- a/test/integration/lib/redmine/themes_test.rb
+++ b/test/integration/lib/redmine/themes_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/projects_test.rb b/test/integration/projects_test.rb
index d82309a9b..5342834a7 100644
--- a/test/integration/projects_test.rb
+++ b/test/integration/projects_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/repositories_git_test.rb b/test/integration/repositories_git_test.rb
index ba1922240..8aa23c786 100644
--- a/test/integration/repositories_git_test.rb
+++ b/test/integration/repositories_git_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/account_test.rb b/test/integration/routing/account_test.rb
index 41060bc33..bfca46256 100644
--- a/test/integration/routing/account_test.rb
+++ b/test/integration/routing/account_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/activities_test.rb b/test/integration/routing/activities_test.rb
index 53577a9fc..3b05fbb7a 100644
--- a/test/integration/routing/activities_test.rb
+++ b/test/integration/routing/activities_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/admin_test.rb b/test/integration/routing/admin_test.rb
index c49b45bc4..f2d6c62c8 100644
--- a/test/integration/routing/admin_test.rb
+++ b/test/integration/routing/admin_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/attachments_test.rb b/test/integration/routing/attachments_test.rb
index 096591f2d..aefadc7da 100644
--- a/test/integration/routing/attachments_test.rb
+++ b/test/integration/routing/attachments_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/auth_sources_test.rb b/test/integration/routing/auth_sources_test.rb
index e816540ff..cb2e23bfb 100644
--- a/test/integration/routing/auth_sources_test.rb
+++ b/test/integration/routing/auth_sources_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/auto_completes_test.rb b/test/integration/routing/auto_completes_test.rb
index 0679fe101..59162fccc 100644
--- a/test/integration/routing/auto_completes_test.rb
+++ b/test/integration/routing/auto_completes_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/boards_test.rb b/test/integration/routing/boards_test.rb
index 02cfa4633..4ddabca37 100644
--- a/test/integration/routing/boards_test.rb
+++ b/test/integration/routing/boards_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/calendars_test.rb b/test/integration/routing/calendars_test.rb
index 06ce9b6f6..29a4df43b 100644
--- a/test/integration/routing/calendars_test.rb
+++ b/test/integration/routing/calendars_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/comments_test.rb b/test/integration/routing/comments_test.rb
index ff8880cc4..57210e38c 100644
--- a/test/integration/routing/comments_test.rb
+++ b/test/integration/routing/comments_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/context_menus_test.rb b/test/integration/routing/context_menus_test.rb
index a5da4d3e4..9410d6112 100644
--- a/test/integration/routing/context_menus_test.rb
+++ b/test/integration/routing/context_menus_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/custom_fields_test.rb b/test/integration/routing/custom_fields_test.rb
index 5da419b9f..73ff4dac4 100644
--- a/test/integration/routing/custom_fields_test.rb
+++ b/test/integration/routing/custom_fields_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/documents_test.rb b/test/integration/routing/documents_test.rb
index 4de45ea44..ae25931ac 100644
--- a/test/integration/routing/documents_test.rb
+++ b/test/integration/routing/documents_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/enumerations_test.rb b/test/integration/routing/enumerations_test.rb
index 6800b02d8..b23c8a191 100644
--- a/test/integration/routing/enumerations_test.rb
+++ b/test/integration/routing/enumerations_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/files_test.rb b/test/integration/routing/files_test.rb
index b6c6f03d8..66f947a20 100644
--- a/test/integration/routing/files_test.rb
+++ b/test/integration/routing/files_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/gantts_test.rb b/test/integration/routing/gantts_test.rb
index d3b060dfb..26283acbf 100644
--- a/test/integration/routing/gantts_test.rb
+++ b/test/integration/routing/gantts_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/groups_test.rb b/test/integration/routing/groups_test.rb
index 0fc1ba562..9edf7efa4 100644
--- a/test/integration/routing/groups_test.rb
+++ b/test/integration/routing/groups_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/imports_test.rb b/test/integration/routing/imports_test.rb
index 6f52c2ad1..91677dbec 100644
--- a/test/integration/routing/imports_test.rb
+++ b/test/integration/routing/imports_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/issue_categories_test.rb b/test/integration/routing/issue_categories_test.rb
index 68f251563..77d5aab8b 100644
--- a/test/integration/routing/issue_categories_test.rb
+++ b/test/integration/routing/issue_categories_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/issue_relations_test.rb b/test/integration/routing/issue_relations_test.rb
index 18ebff5b9..8d9160eb6 100644
--- a/test/integration/routing/issue_relations_test.rb
+++ b/test/integration/routing/issue_relations_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/issue_statuses_test.rb b/test/integration/routing/issue_statuses_test.rb
index 97bd8a8f3..16d288246 100644
--- a/test/integration/routing/issue_statuses_test.rb
+++ b/test/integration/routing/issue_statuses_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/issues_test.rb b/test/integration/routing/issues_test.rb
index 2ca9a756b..b9c9a1adb 100644
--- a/test/integration/routing/issues_test.rb
+++ b/test/integration/routing/issues_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/journals_test.rb b/test/integration/routing/journals_test.rb
index 33b644f63..19a5c40ca 100644
--- a/test/integration/routing/journals_test.rb
+++ b/test/integration/routing/journals_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/mail_handler_test.rb b/test/integration/routing/mail_handler_test.rb
index e25ee0ae1..5aa4cb201 100644
--- a/test/integration/routing/mail_handler_test.rb
+++ b/test/integration/routing/mail_handler_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/members_test.rb b/test/integration/routing/members_test.rb
index 17f8e0227..a3ad9b072 100644
--- a/test/integration/routing/members_test.rb
+++ b/test/integration/routing/members_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/messages_test.rb b/test/integration/routing/messages_test.rb
index e5ea2844c..866b3d3dc 100644
--- a/test/integration/routing/messages_test.rb
+++ b/test/integration/routing/messages_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/my_test.rb b/test/integration/routing/my_test.rb
index 546fb3014..fac5ebffc 100644
--- a/test/integration/routing/my_test.rb
+++ b/test/integration/routing/my_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/news_test.rb b/test/integration/routing/news_test.rb
index 0c6340443..f3aff861b 100644
--- a/test/integration/routing/news_test.rb
+++ b/test/integration/routing/news_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/previews_test.rb b/test/integration/routing/previews_test.rb
index c5b4eeaee..e1b8fc0ad 100644
--- a/test/integration/routing/previews_test.rb
+++ b/test/integration/routing/previews_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/principal_memberships_test.rb b/test/integration/routing/principal_memberships_test.rb
index c6e5fe418..888e73145 100644
--- a/test/integration/routing/principal_memberships_test.rb
+++ b/test/integration/routing/principal_memberships_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/project_enumerations_test.rb b/test/integration/routing/project_enumerations_test.rb
index f3e03945a..09a4812e7 100644
--- a/test/integration/routing/project_enumerations_test.rb
+++ b/test/integration/routing/project_enumerations_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/projects_test.rb b/test/integration/routing/projects_test.rb
index 0048380ae..0f55db896 100644
--- a/test/integration/routing/projects_test.rb
+++ b/test/integration/routing/projects_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/queries_test.rb b/test/integration/routing/queries_test.rb
index 8dc5e8416..b1dbeaa0d 100644
--- a/test/integration/routing/queries_test.rb
+++ b/test/integration/routing/queries_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/reports_test.rb b/test/integration/routing/reports_test.rb
index b008ecbdd..a85a0f9a5 100644
--- a/test/integration/routing/reports_test.rb
+++ b/test/integration/routing/reports_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/repositories_test.rb b/test/integration/routing/repositories_test.rb
index 15f707091..4b82e2d81 100644
--- a/test/integration/routing/repositories_test.rb
+++ b/test/integration/routing/repositories_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/roles_test.rb b/test/integration/routing/roles_test.rb
index 895282059..8aaf36063 100644
--- a/test/integration/routing/roles_test.rb
+++ b/test/integration/routing/roles_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/search_test.rb b/test/integration/routing/search_test.rb
index ef0f86c16..aa5d22287 100644
--- a/test/integration/routing/search_test.rb
+++ b/test/integration/routing/search_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/settings_test.rb b/test/integration/routing/settings_test.rb
index 51688d146..5eebb5792 100644
--- a/test/integration/routing/settings_test.rb
+++ b/test/integration/routing/settings_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/sys_test.rb b/test/integration/routing/sys_test.rb
index 6893051b0..bba26aa29 100644
--- a/test/integration/routing/sys_test.rb
+++ b/test/integration/routing/sys_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/timelog_test.rb b/test/integration/routing/timelog_test.rb
index 0f7f8e4da..53c883bd9 100644
--- a/test/integration/routing/timelog_test.rb
+++ b/test/integration/routing/timelog_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/trackers_test.rb b/test/integration/routing/trackers_test.rb
index d650dcc95..bc8c6ecdd 100644
--- a/test/integration/routing/trackers_test.rb
+++ b/test/integration/routing/trackers_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/users_test.rb b/test/integration/routing/users_test.rb
index 97beea482..0e1d957d0 100644
--- a/test/integration/routing/users_test.rb
+++ b/test/integration/routing/users_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/versions_test.rb b/test/integration/routing/versions_test.rb
index d559e24b1..364b5ae52 100644
--- a/test/integration/routing/versions_test.rb
+++ b/test/integration/routing/versions_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/watchers_test.rb b/test/integration/routing/watchers_test.rb
index 2c2949126..ffb3279fe 100644
--- a/test/integration/routing/watchers_test.rb
+++ b/test/integration/routing/watchers_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/welcome_test.rb b/test/integration/routing/welcome_test.rb
index ad064f35d..48686a7be 100644
--- a/test/integration/routing/welcome_test.rb
+++ b/test/integration/routing/welcome_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/wiki_test.rb b/test/integration/routing/wiki_test.rb
index eb972dc58..54fcb17db 100644
--- a/test/integration/routing/wiki_test.rb
+++ b/test/integration/routing/wiki_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/wikis_test.rb b/test/integration/routing/wikis_test.rb
index ebd241614..f3d327630 100644
--- a/test/integration/routing/wikis_test.rb
+++ b/test/integration/routing/wikis_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/routing/workflows_test.rb b/test/integration/routing/workflows_test.rb
index a24b87db9..436ca21bc 100644
--- a/test/integration/routing/workflows_test.rb
+++ b/test/integration/routing/workflows_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/sessions_test.rb b/test/integration/sessions_test.rb
index c86bae1c3..836e6f782 100644
--- a/test/integration/sessions_test.rb
+++ b/test/integration/sessions_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/sudo_mode_test.rb b/test/integration/sudo_mode_test.rb
index 94f643e6c..844c61481 100644
--- a/test/integration/sudo_mode_test.rb
+++ b/test/integration/sudo_mode_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
require File.expand_path('../../test_helper', __FILE__)
class SudoModeTest < Redmine::IntegrationTest
diff --git a/test/integration/users_test.rb b/test/integration/users_test.rb
index cb29b0902..6ae8e788f 100644
--- a/test/integration/users_test.rb
+++ b/test/integration/users_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/integration/welcome_test.rb b/test/integration/welcome_test.rb
index ef181e71c..1dbea10d3 100644
--- a/test/integration/welcome_test.rb
+++ b/test/integration/welcome_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/mocks/open_id_authentication_mock.rb b/test/mocks/open_id_authentication_mock.rb
index 7cb78c7c7..d93c911ab 100644
--- a/test/mocks/open_id_authentication_mock.rb
+++ b/test/mocks/open_id_authentication_mock.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Mocks out OpenID
#
# http://www.northpub.com/articles/2007/04/02/testing-openid-support
diff --git a/test/object_helpers.rb b/test/object_helpers.rb
index 0e490efe1..7e6a663b4 100644
--- a/test/object_helpers.rb
+++ b/test/object_helpers.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
module ObjectHelpers
def User.generate!(attributes={})
@generated_user_login ||= 'user0'
diff --git a/test/system/issues_import_test.rb b/test/system/issues_import_test.rb
index 918282eaf..249cc2272 100644
--- a/test/system/issues_import_test.rb
+++ b/test/system/issues_import_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/system/issues_test.rb b/test/system/issues_test.rb
index f4c52996d..388197c9c 100644
--- a/test/system/issues_test.rb
+++ b/test/system/issues_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/system/my_page_test.rb b/test/system/my_page_test.rb
index e9f74d354..3c7c3cae5 100644
--- a/test/system/my_page_test.rb
+++ b/test/system/my_page_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/system/quick_jump_test.rb b/test/system/quick_jump_test.rb
index 5831faf86..ecfca5bca 100644
--- a/test/system/quick_jump_test.rb
+++ b/test/system/quick_jump_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/system/sudo_mode_test.rb b/test/system/sudo_mode_test.rb
index 4d7e11bce..401c35c3f 100644
--- a/test/system/sudo_mode_test.rb
+++ b/test/system/sudo_mode_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/system/timelog_test.rb b/test/system/timelog_test.rb
index 8624fffed..3e7def410 100644
--- a/test/system/timelog_test.rb
+++ b/test/system/timelog_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/test_helper.rb b/test/test_helper.rb
index ef8215cc1..3ab99aaae 100644
--- a/test/test_helper.rb
+++ b/test/test_helper.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/activity_test.rb b/test/unit/activity_test.rb
index 3c1402173..fcefbcea7 100644
--- a/test/unit/activity_test.rb
+++ b/test/unit/activity_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/attachment_test.rb b/test/unit/attachment_test.rb
index bccb2c6c4..8790fe93f 100644
--- a/test/unit/attachment_test.rb
+++ b/test/unit/attachment_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/attachment_transaction_test.rb b/test/unit/attachment_transaction_test.rb
index 173d2a658..72f87e324 100644
--- a/test/unit/attachment_transaction_test.rb
+++ b/test/unit/attachment_transaction_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/auth_source_ldap_test.rb b/test/unit/auth_source_ldap_test.rb
index 322568226..452f1d2b9 100644
--- a/test/unit/auth_source_ldap_test.rb
+++ b/test/unit/auth_source_ldap_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/board_test.rb b/test/unit/board_test.rb
index 35c2da9fa..cfe59608f 100644
--- a/test/unit/board_test.rb
+++ b/test/unit/board_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/changeset_test.rb b/test/unit/changeset_test.rb
index c246a0c70..248421c38 100644
--- a/test/unit/changeset_test.rb
+++ b/test/unit/changeset_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/comment_test.rb b/test/unit/comment_test.rb
index 6e97df612..ec3abf496 100644
--- a/test/unit/comment_test.rb
+++ b/test/unit/comment_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/custom_field_test.rb b/test/unit/custom_field_test.rb
index e4c9c0b94..e0f08f6c0 100644
--- a/test/unit/custom_field_test.rb
+++ b/test/unit/custom_field_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/custom_field_user_format_test.rb b/test/unit/custom_field_user_format_test.rb
index a3d161de3..c0a16157a 100644
--- a/test/unit/custom_field_user_format_test.rb
+++ b/test/unit/custom_field_user_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/custom_field_version_format_test.rb b/test/unit/custom_field_version_format_test.rb
index 4e09bed05..40177e6de 100644
--- a/test/unit/custom_field_version_format_test.rb
+++ b/test/unit/custom_field_version_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/custom_value_test.rb b/test/unit/custom_value_test.rb
index 14964ed09..70e276c4e 100644
--- a/test/unit/custom_value_test.rb
+++ b/test/unit/custom_value_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/default_data_test.rb b/test/unit/default_data_test.rb
index 6a6a223bd..a22f3e233 100644
--- a/test/unit/default_data_test.rb
+++ b/test/unit/default_data_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/document_category_test.rb b/test/unit/document_category_test.rb
index 305d827da..66641a928 100644
--- a/test/unit/document_category_test.rb
+++ b/test/unit/document_category_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/document_test.rb b/test/unit/document_test.rb
index 7c409e927..43c4cc793 100644
--- a/test/unit/document_test.rb
+++ b/test/unit/document_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/enabled_module_test.rb b/test/unit/enabled_module_test.rb
index 79995dbf2..5f3aae7e8 100644
--- a/test/unit/enabled_module_test.rb
+++ b/test/unit/enabled_module_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/enumeration_test.rb b/test/unit/enumeration_test.rb
index 7eeafd2af..b17dfbce8 100644
--- a/test/unit/enumeration_test.rb
+++ b/test/unit/enumeration_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/group_test.rb b/test/unit/group_test.rb
index f706826ce..c264d48cb 100644
--- a/test/unit/group_test.rb
+++ b/test/unit/group_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/initializers/patches_test.rb b/test/unit/initializers/patches_test.rb
index c9a134fa4..67ecc2f7c 100644
--- a/test/unit/initializers/patches_test.rb
+++ b/test/unit/initializers/patches_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_category_test.rb b/test/unit/issue_category_test.rb
index 2d0316882..8ebea9f3e 100644
--- a/test/unit/issue_category_test.rb
+++ b/test/unit/issue_category_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_custom_field_test.rb b/test/unit/issue_custom_field_test.rb
index 4ecce3b5e..e6e76e9e1 100644
--- a/test/unit/issue_custom_field_test.rb
+++ b/test/unit/issue_custom_field_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_import_test.rb b/test/unit/issue_import_test.rb
index fe4a04872..b6c2d3104 100644
--- a/test/unit/issue_import_test.rb
+++ b/test/unit/issue_import_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_nested_set_concurrency_test.rb b/test/unit/issue_nested_set_concurrency_test.rb
index b35cbadbd..ae4261263 100644
--- a/test/unit/issue_nested_set_concurrency_test.rb
+++ b/test/unit/issue_nested_set_concurrency_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_nested_set_test.rb b/test/unit/issue_nested_set_test.rb
index 30aa2a097..ab5dcec85 100644
--- a/test/unit/issue_nested_set_test.rb
+++ b/test/unit/issue_nested_set_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_priority_test.rb b/test/unit/issue_priority_test.rb
index 3141344f4..b48e095d5 100644
--- a/test/unit/issue_priority_test.rb
+++ b/test/unit/issue_priority_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_relation_test.rb b/test/unit/issue_relation_test.rb
index 6e6322885..31611edb0 100644
--- a/test/unit/issue_relation_test.rb
+++ b/test/unit/issue_relation_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_scopes_test.rb b/test/unit/issue_scopes_test.rb
index 19253645f..13f98a357 100644
--- a/test/unit/issue_scopes_test.rb
+++ b/test/unit/issue_scopes_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_status_test.rb b/test/unit/issue_status_test.rb
index 27441366f..70d8aa80d 100644
--- a/test/unit/issue_status_test.rb
+++ b/test/unit/issue_status_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_subtasking_test.rb b/test/unit/issue_subtasking_test.rb
index b1c3d179d..ff75a9ead 100644
--- a/test/unit/issue_subtasking_test.rb
+++ b/test/unit/issue_subtasking_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_test.rb b/test/unit/issue_test.rb
index 3bbe75158..9f2e024fc 100644
--- a/test/unit/issue_test.rb
+++ b/test/unit/issue_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/issue_transaction_test.rb b/test/unit/issue_transaction_test.rb
index 719e4dbc5..4d9813ad1 100644
--- a/test/unit/issue_transaction_test.rb
+++ b/test/unit/issue_transaction_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/journal_observer_test.rb b/test/unit/journal_observer_test.rb
index d3fb735c7..8dccce628 100644
--- a/test/unit/journal_observer_test.rb
+++ b/test/unit/journal_observer_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/journal_test.rb b/test/unit/journal_test.rb
index 9bbedd1d5..6b21bcd35 100644
--- a/test/unit/journal_test.rb
+++ b/test/unit/journal_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/access_control_test.rb b/test/unit/lib/redmine/access_control_test.rb
index 0deceee3a..13bc8ee62 100644
--- a/test/unit/lib/redmine/access_control_test.rb
+++ b/test/unit/lib/redmine/access_control_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/acts/positioned_with_scope_test.rb b/test/unit/lib/redmine/acts/positioned_with_scope_test.rb
index 0d3b023dd..dd4efe0af 100644
--- a/test/unit/lib/redmine/acts/positioned_with_scope_test.rb
+++ b/test/unit/lib/redmine/acts/positioned_with_scope_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/acts/positioned_without_scope_test.rb b/test/unit/lib/redmine/acts/positioned_without_scope_test.rb
index 23440d0de..e76cf8bbf 100644
--- a/test/unit/lib/redmine/acts/positioned_without_scope_test.rb
+++ b/test/unit/lib/redmine/acts/positioned_without_scope_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/ciphering_test.rb b/test/unit/lib/redmine/ciphering_test.rb
index 38f87b419..3b0577c1d 100644
--- a/test/unit/lib/redmine/ciphering_test.rb
+++ b/test/unit/lib/redmine/ciphering_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/codeset_util_test.rb b/test/unit/lib/redmine/codeset_util_test.rb
index 3d04cbae7..c3040b553 100644
--- a/test/unit/lib/redmine/codeset_util_test.rb
+++ b/test/unit/lib/redmine/codeset_util_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/configuration_test.rb b/test/unit/lib/redmine/configuration_test.rb
index ca879c0ca..da408ef30 100644
--- a/test/unit/lib/redmine/configuration_test.rb
+++ b/test/unit/lib/redmine/configuration_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/export/csv_test.rb b/test/unit/lib/redmine/export/csv_test.rb
index d3727b620..69f760af2 100644
--- a/test/unit/lib/redmine/export/csv_test.rb
+++ b/test/unit/lib/redmine/export/csv_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb b/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
index 14f34db24..111c7d089 100644
--- a/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
+++ b/test/unit/lib/redmine/export/pdf/issues_pdf_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/export/pdf_test.rb b/test/unit/lib/redmine/export/pdf_test.rb
index 3243803ef..9e9880c3a 100644
--- a/test/unit/lib/redmine/export/pdf_test.rb
+++ b/test/unit/lib/redmine/export/pdf_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/attachment_format_test.rb b/test/unit/lib/redmine/field_format/attachment_format_test.rb
index 9fbaa3211..0d68bb616 100644
--- a/test/unit/lib/redmine/field_format/attachment_format_test.rb
+++ b/test/unit/lib/redmine/field_format/attachment_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb b/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb
index 8d883f95a..055422631 100644
--- a/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb
+++ b/test/unit/lib/redmine/field_format/attachment_format_visibility_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/bool_format_test.rb b/test/unit/lib/redmine/field_format/bool_format_test.rb
index 2458de1ed..31d7af707 100644
--- a/test/unit/lib/redmine/field_format/bool_format_test.rb
+++ b/test/unit/lib/redmine/field_format/bool_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/enumeration_format_test.rb b/test/unit/lib/redmine/field_format/enumeration_format_test.rb
index 9b977b221..255f7f1bb 100644
--- a/test/unit/lib/redmine/field_format/enumeration_format_test.rb
+++ b/test/unit/lib/redmine/field_format/enumeration_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/field_format_test.rb b/test/unit/lib/redmine/field_format/field_format_test.rb
index 7d98f2585..689f737df 100644
--- a/test/unit/lib/redmine/field_format/field_format_test.rb
+++ b/test/unit/lib/redmine/field_format/field_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/link_format_test.rb b/test/unit/lib/redmine/field_format/link_format_test.rb
index aa7e8de52..e2e26980c 100644
--- a/test/unit/lib/redmine/field_format/link_format_test.rb
+++ b/test/unit/lib/redmine/field_format/link_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/list_format_test.rb b/test/unit/lib/redmine/field_format/list_format_test.rb
index 06a7fbda4..d5c5a871f 100644
--- a/test/unit/lib/redmine/field_format/list_format_test.rb
+++ b/test/unit/lib/redmine/field_format/list_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/numeric_format_test.rb b/test/unit/lib/redmine/field_format/numeric_format_test.rb
index 72e2148d5..fdb757f72 100644
--- a/test/unit/lib/redmine/field_format/numeric_format_test.rb
+++ b/test/unit/lib/redmine/field_format/numeric_format_test.rb
@@ -1,35 +1,37 @@
-# Redmine - project management software
-# Copyright (C) 2006-2017 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
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-require File.expand_path('../../../../../test_helper', __FILE__)
-require 'redmine/field_format'
-
-class Redmine::NumericFieldFormatTest < ActionView::TestCase
- include ApplicationHelper
-
- def setup
- User.current = nil
- end
-
- def test_integer_field_with_url_pattern_should_format_as_link
- field = IssueCustomField.new(:field_format => 'int', :url_pattern => 'http://foo/%value%')
- custom_value = CustomValue.new(:custom_field => field, :customized => Issue.new, :value => "3")
-
- assert_equal 3, field.format.formatted_custom_value(self, custom_value, false)
- assert_equal '<a class="external" href="http://foo/3">3</a>', field.format.formatted_custom_value(self, custom_value, true)
- end
-end
+# frozen_string_literal: false
+
+# Redmine - project management software
+# Copyright (C) 2006-2017 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
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+require File.expand_path('../../../../../test_helper', __FILE__)
+require 'redmine/field_format'
+
+class Redmine::NumericFieldFormatTest < ActionView::TestCase
+ include ApplicationHelper
+
+ def setup
+ User.current = nil
+ end
+
+ def test_integer_field_with_url_pattern_should_format_as_link
+ field = IssueCustomField.new(:field_format => 'int', :url_pattern => 'http://foo/%value%')
+ custom_value = CustomValue.new(:custom_field => field, :customized => Issue.new, :value => "3")
+
+ assert_equal 3, field.format.formatted_custom_value(self, custom_value, false)
+ assert_equal '<a class="external" href="http://foo/3">3</a>', field.format.formatted_custom_value(self, custom_value, true)
+ end
+end
diff --git a/test/unit/lib/redmine/field_format/user_field_format_test.rb b/test/unit/lib/redmine/field_format/user_field_format_test.rb
index e545c6d4f..0d2f4fa8a 100644
--- a/test/unit/lib/redmine/field_format/user_field_format_test.rb
+++ b/test/unit/lib/redmine/field_format/user_field_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/field_format/version_field_format_test.rb b/test/unit/lib/redmine/field_format/version_field_format_test.rb
index 2984624d6..09071b1f0 100644
--- a/test/unit/lib/redmine/field_format/version_field_format_test.rb
+++ b/test/unit/lib/redmine/field_format/version_field_format_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/helpers/calendar_test.rb b/test/unit/lib/redmine/helpers/calendar_test.rb
index 06fe31f00..1c5f98027 100644
--- a/test/unit/lib/redmine/helpers/calendar_test.rb
+++ b/test/unit/lib/redmine/helpers/calendar_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/helpers/diff_test.rb b/test/unit/lib/redmine/helpers/diff_test.rb
index 8768f798d..fa1c83162 100644
--- a/test/unit/lib/redmine/helpers/diff_test.rb
+++ b/test/unit/lib/redmine/helpers/diff_test.rb
@@ -1,37 +1,39 @@
-# Redmine - project management software
-# Copyright (C) 2006-2017 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
-# as published by the Free Software Foundation; either version 2
-# of the License, or (at your option) any later version.
-#
-# This program is distributed in the hope that it will be useful,
-# but WITHOUT ANY WARRANTY; without even the implied warranty of
-# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-# GNU General Public License for more details.
-#
-# You should have received a copy of the GNU General Public License
-# along with this program; if not, write to the Free Software
-# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
-
-require File.expand_path('../../../../../test_helper', __FILE__)
-
-class DiffTest < ActiveSupport::TestCase
- def test_diff
- diff = Redmine::Helpers::Diff.new("foo", "bar")
- assert_not_nil diff
- end
-
- def test_dont_double_escape
- # 3 cases to test in the before: first word, last word, everything inbetween
- before = "<stuff> with html & special chars</danger>"
- # all words in after are treated equal
- after = "other stuff <script>alert('foo');</alert>"
-
- computed_diff = Redmine::Helpers::Diff.new(before, after).to_html
- expected_diff = '<span class="diff_in">&lt;stuff&gt; with html &amp; special chars&lt;/danger&gt;</span> <span class="diff_out">other stuff &lt;script&gt;alert(&#39;foo&#39;);&lt;/alert&gt;</span>'
-
- assert_equal computed_diff, expected_diff
- end
-end
+# frozen_string_literal: false
+
+# Redmine - project management software
+# Copyright (C) 2006-2017 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
+# as published by the Free Software Foundation; either version 2
+# of the License, or (at your option) any later version.
+#
+# This program is distributed in the hope that it will be useful,
+# but WITHOUT ANY WARRANTY; without even the implied warranty of
+# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+# GNU General Public License for more details.
+#
+# You should have received a copy of the GNU General Public License
+# along with this program; if not, write to the Free Software
+# Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+
+require File.expand_path('../../../../../test_helper', __FILE__)
+
+class DiffTest < ActiveSupport::TestCase
+ def test_diff
+ diff = Redmine::Helpers::Diff.new("foo", "bar")
+ assert_not_nil diff
+ end
+
+ def test_dont_double_escape
+ # 3 cases to test in the before: first word, last word, everything inbetween
+ before = "<stuff> with html & special chars</danger>"
+ # all words in after are treated equal
+ after = "other stuff <script>alert('foo');</alert>"
+
+ computed_diff = Redmine::Helpers::Diff.new(before, after).to_html
+ expected_diff = '<span class="diff_in">&lt;stuff&gt; with html &amp; special chars&lt;/danger&gt;</span> <span class="diff_out">other stuff &lt;script&gt;alert(&#39;foo&#39;);&lt;/alert&gt;</span>'
+
+ assert_equal computed_diff, expected_diff
+ end
+end
diff --git a/test/unit/lib/redmine/helpers/gantt_test.rb b/test/unit/lib/redmine/helpers/gantt_test.rb
index 0f4ca4e90..69270f7b1 100644
--- a/test/unit/lib/redmine/helpers/gantt_test.rb
+++ b/test/unit/lib/redmine/helpers/gantt_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/helpers/url_test.rb b/test/unit/lib/redmine/helpers/url_test.rb
index 1807af1db..6bf11c884 100644
--- a/test/unit/lib/redmine/helpers/url_test.rb
+++ b/test/unit/lib/redmine/helpers/url_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/hook_test.rb b/test/unit/lib/redmine/hook_test.rb
index 0a75ed0b6..e804c7e66 100644
--- a/test/unit/lib/redmine/hook_test.rb
+++ b/test/unit/lib/redmine/hook_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/i18n_test.rb b/test/unit/lib/redmine/i18n_test.rb
index 9e8cb8d90..7188c54b9 100644
--- a/test/unit/lib/redmine/i18n_test.rb
+++ b/test/unit/lib/redmine/i18n_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/info_test.rb b/test/unit/lib/redmine/info_test.rb
index 5cdbda47e..1c33b7a53 100644
--- a/test/unit/lib/redmine/info_test.rb
+++ b/test/unit/lib/redmine/info_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/menu_manager/mapper_test.rb b/test/unit/lib/redmine/menu_manager/mapper_test.rb
index 519e73169..61d036a53 100644
--- a/test/unit/lib/redmine/menu_manager/mapper_test.rb
+++ b/test/unit/lib/redmine/menu_manager/mapper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb
index 42ec77058..69102bde2 100644
--- a/test/unit/lib/redmine/menu_manager/menu_helper_test.rb
+++ b/test/unit/lib/redmine/menu_manager/menu_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/menu_manager/menu_item_test.rb b/test/unit/lib/redmine/menu_manager/menu_item_test.rb
index b4c864d89..e6927b5d4 100644
--- a/test/unit/lib/redmine/menu_manager/menu_item_test.rb
+++ b/test/unit/lib/redmine/menu_manager/menu_item_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/menu_manager_test.rb b/test/unit/lib/redmine/menu_manager_test.rb
index b4e03e735..ca777e3d5 100644
--- a/test/unit/lib/redmine/menu_manager_test.rb
+++ b/test/unit/lib/redmine/menu_manager_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/mime_type_test.rb b/test/unit/lib/redmine/mime_type_test.rb
index bad26dd48..7a1d1fcb0 100644
--- a/test/unit/lib/redmine/mime_type_test.rb
+++ b/test/unit/lib/redmine/mime_type_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/notifiable_test.rb b/test/unit/lib/redmine/notifiable_test.rb
index 2ca378450..250543d93 100644
--- a/test/unit/lib/redmine/notifiable_test.rb
+++ b/test/unit/lib/redmine/notifiable_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/pagination_helper_test.rb b/test/unit/lib/redmine/pagination_helper_test.rb
index e743db1e2..008bfb492 100644
--- a/test/unit/lib/redmine/pagination_helper_test.rb
+++ b/test/unit/lib/redmine/pagination_helper_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/pagination_test.rb b/test/unit/lib/redmine/pagination_test.rb
index 158d18ffc..81696f2a4 100644
--- a/test/unit/lib/redmine/pagination_test.rb
+++ b/test/unit/lib/redmine/pagination_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/plugin_test.rb b/test/unit/lib/redmine/plugin_test.rb
index 42122c945..cc2c583d6 100644
--- a/test/unit/lib/redmine/plugin_test.rb
+++ b/test/unit/lib/redmine/plugin_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/safe_attributes_test.rb b/test/unit/lib/redmine/safe_attributes_test.rb
index b9b827483..7b78953af 100644
--- a/test/unit/lib/redmine/safe_attributes_test.rb
+++ b/test/unit/lib/redmine/safe_attributes_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
index 430e07dab..0de56c626 100644
--- a/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/bazaar_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
index eec9a10d2..8c3fb4faa 100644
--- a/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/cvs_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
index 69cea8309..1a1d64fde 100644
--- a/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/filesystem_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
index 3aac745a4..5a942491e 100644
--- a/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/git_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
index 4f891602a..aa2dc8ae0 100644
--- a/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/mercurial_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb
index 7f66c098c..e7a608e61 100644
--- a/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb
+++ b/test/unit/lib/redmine/scm/adapters/subversion_adapter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/themes_test.rb b/test/unit/lib/redmine/themes_test.rb
index 9acf06906..7128e41a0 100644
--- a/test/unit/lib/redmine/themes_test.rb
+++ b/test/unit/lib/redmine/themes_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/unified_diff_test.rb b/test/unit/lib/redmine/unified_diff_test.rb
index 0a09a0fb4..efd7780d9 100644
--- a/test/unit/lib/redmine/unified_diff_test.rb
+++ b/test/unit/lib/redmine/unified_diff_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/utils/date_calculation.rb b/test/unit/lib/redmine/utils/date_calculation.rb
index 422848678..cb96c8df3 100644
--- a/test/unit/lib/redmine/utils/date_calculation.rb
+++ b/test/unit/lib/redmine/utils/date_calculation.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/views/builders/json_test.rb b/test/unit/lib/redmine/views/builders/json_test.rb
index b29fe1a65..eba7bc57d 100644
--- a/test/unit/lib/redmine/views/builders/json_test.rb
+++ b/test/unit/lib/redmine/views/builders/json_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/views/builders/xml_test.rb b/test/unit/lib/redmine/views/builders/xml_test.rb
index 46b5755b0..8d641c2fa 100644
--- a/test/unit/lib/redmine/views/builders/xml_test.rb
+++ b/test/unit/lib/redmine/views/builders/xml_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/views/labelled_form_builder_test.rb b/test/unit/lib/redmine/views/labelled_form_builder_test.rb
index ea7e2a6c3..69d157fa4 100644
--- a/test/unit/lib/redmine/views/labelled_form_builder_test.rb
+++ b/test/unit/lib/redmine/views/labelled_form_builder_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
index 7af356bba..7ca503226 100644
--- a/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/html_parser_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting/macros_test.rb b/test/unit/lib/redmine/wiki_formatting/macros_test.rb
index 7b0dfa6da..b3a9abb6b 100644
--- a/test/unit/lib/redmine/wiki_formatting/macros_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/macros_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
index cfe8188f6..f1eee53de 100644
--- a/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/markdown_formatter_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb
index d5c4bf1fa..b46f574e2 100644
--- a/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/markdown_html_parser_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
index 4bbef9996..4a22baad7 100644
--- a/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/textile_formatter_test.rb
@@ -1,4 +1,6 @@
#encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb b/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb
index 327336647..3ae16c1d6 100644
--- a/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting/textile_html_parser_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine/wiki_formatting_test.rb b/test/unit/lib/redmine/wiki_formatting_test.rb
index 6f05d3ef9..4db068704 100644
--- a/test/unit/lib/redmine/wiki_formatting_test.rb
+++ b/test/unit/lib/redmine/wiki_formatting_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/lib/redmine_test.rb b/test/unit/lib/redmine_test.rb
index 1b69190ff..718e9d3ac 100644
--- a/test/unit/lib/redmine_test.rb
+++ b/test/unit/lib/redmine_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/mail_handler_test.rb b/test/unit/mail_handler_test.rb
index adc4b71cf..6b2d5fd18 100644
--- a/test/unit/mail_handler_test.rb
+++ b/test/unit/mail_handler_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/mailer_localisation_test.rb b/test/unit/mailer_localisation_test.rb
index f0cffc5b9..06cba0a6d 100644
--- a/test/unit/mailer_localisation_test.rb
+++ b/test/unit/mailer_localisation_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/mailer_test.rb b/test/unit/mailer_test.rb
index 2f92d1c60..74df91a47 100644
--- a/test/unit/mailer_test.rb
+++ b/test/unit/mailer_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/member_test.rb b/test/unit/member_test.rb
index ab6bf8473..70cac6718 100644
--- a/test/unit/member_test.rb
+++ b/test/unit/member_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/message_test.rb b/test/unit/message_test.rb
index 8d7073c2e..63d5f3093 100644
--- a/test/unit/message_test.rb
+++ b/test/unit/message_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/news_test.rb b/test/unit/news_test.rb
index 16e55dea3..c50747c5d 100644
--- a/test/unit/news_test.rb
+++ b/test/unit/news_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/principal_test.rb b/test/unit/principal_test.rb
index d5c810741..ffcf14fd9 100644
--- a/test/unit/principal_test.rb
+++ b/test/unit/principal_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/project_copy_test.rb b/test/unit/project_copy_test.rb
index 19bb13a25..371de906c 100644
--- a/test/unit/project_copy_test.rb
+++ b/test/unit/project_copy_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/project_members_inheritance_test.rb b/test/unit/project_members_inheritance_test.rb
index dde3d083c..b339e47e6 100644
--- a/test/unit/project_members_inheritance_test.rb
+++ b/test/unit/project_members_inheritance_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/project_nested_set_concurrency_test.rb b/test/unit/project_nested_set_concurrency_test.rb
index 771601333..61831db2d 100644
--- a/test/unit/project_nested_set_concurrency_test.rb
+++ b/test/unit/project_nested_set_concurrency_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/project_nested_set_test.rb b/test/unit/project_nested_set_test.rb
index 1f41f745f..01fad0cb2 100644
--- a/test/unit/project_nested_set_test.rb
+++ b/test/unit/project_nested_set_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/project_test.rb b/test/unit/project_test.rb
index ccbb92225..129ac66ff 100644
--- a/test/unit/project_test.rb
+++ b/test/unit/project_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/query_test.rb b/test/unit/query_test.rb
index 3fa1da1f9..b50761d2a 100644
--- a/test/unit/query_test.rb
+++ b/test/unit/query_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/repository_bazaar_test.rb b/test/unit/repository_bazaar_test.rb
index 4a5efbec3..06c3a2c9c 100644
--- a/test/unit/repository_bazaar_test.rb
+++ b/test/unit/repository_bazaar_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_cvs_test.rb b/test/unit/repository_cvs_test.rb
index e2f4e0429..302e37c86 100644
--- a/test/unit/repository_cvs_test.rb
+++ b/test/unit/repository_cvs_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_filesystem_test.rb b/test/unit/repository_filesystem_test.rb
index be4223a6b..1b173283a 100644
--- a/test/unit/repository_filesystem_test.rb
+++ b/test/unit/repository_filesystem_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_git_test.rb b/test/unit/repository_git_test.rb
index 1bdab9c99..9ea9b4828 100644
--- a/test/unit/repository_git_test.rb
+++ b/test/unit/repository_git_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_mercurial_test.rb b/test/unit/repository_mercurial_test.rb
index 84403c844..3f4ba6fbe 100644
--- a/test/unit/repository_mercurial_test.rb
+++ b/test/unit/repository_mercurial_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_subversion_test.rb b/test/unit/repository_subversion_test.rb
index a17c12bb1..bca0e4c21 100644
--- a/test/unit/repository_subversion_test.rb
+++ b/test/unit/repository_subversion_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/repository_test.rb b/test/unit/repository_test.rb
index da89f91f6..27628964b 100644
--- a/test/unit/repository_test.rb
+++ b/test/unit/repository_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/role_test.rb b/test/unit/role_test.rb
index ff723a347..09b249519 100644
--- a/test/unit/role_test.rb
+++ b/test/unit/role_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/search_test.rb b/test/unit/search_test.rb
index ecfbbcb9e..b88b7828e 100644
--- a/test/unit/search_test.rb
+++ b/test/unit/search_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/setting_test.rb b/test/unit/setting_test.rb
index 5eed249f1..61bcb0db1 100644
--- a/test/unit/setting_test.rb
+++ b/test/unit/setting_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/time_entry_activity_test.rb b/test/unit/time_entry_activity_test.rb
index 14e926425..350df287d 100644
--- a/test/unit/time_entry_activity_test.rb
+++ b/test/unit/time_entry_activity_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/time_entry_query_test.rb b/test/unit/time_entry_query_test.rb
index f5533e425..5344ee1a8 100644
--- a/test/unit/time_entry_query_test.rb
+++ b/test/unit/time_entry_query_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/time_entry_test.rb b/test/unit/time_entry_test.rb
index be115a81c..94a2ac8ac 100644
--- a/test/unit/time_entry_test.rb
+++ b/test/unit/time_entry_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/token_test.rb b/test/unit/token_test.rb
index 2c6c865c2..b3004f614 100644
--- a/test/unit/token_test.rb
+++ b/test/unit/token_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/tracker_test.rb b/test/unit/tracker_test.rb
index c1d02a56c..f5cacd986 100644
--- a/test/unit/tracker_test.rb
+++ b/test/unit/tracker_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/user_preference_test.rb b/test/unit/user_preference_test.rb
index b8765c2e2..e738d72ea 100644
--- a/test/unit/user_preference_test.rb
+++ b/test/unit/user_preference_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/user_test.rb b/test/unit/user_test.rb
index 444e99eff..399a97274 100644
--- a/test/unit/user_test.rb
+++ b/test/unit/user_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/version_test.rb b/test/unit/version_test.rb
index a55b095db..048b3f1a2 100644
--- a/test/unit/version_test.rb
+++ b/test/unit/version_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/watcher_test.rb b/test/unit/watcher_test.rb
index a5acbf9d1..d49b37461 100644
--- a/test/unit/watcher_test.rb
+++ b/test/unit/watcher_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/wiki_content_test.rb b/test/unit/wiki_content_test.rb
index 016fd916a..225d7697e 100644
--- a/test/unit/wiki_content_test.rb
+++ b/test/unit/wiki_content_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/wiki_content_version_test.rb b/test/unit/wiki_content_version_test.rb
index 4625f708a..be88ac74c 100644
--- a/test/unit/wiki_content_version_test.rb
+++ b/test/unit/wiki_content_version_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/wiki_page_test.rb b/test/unit/wiki_page_test.rb
index 3f41acff6..0dd61940d 100644
--- a/test/unit/wiki_page_test.rb
+++ b/test/unit/wiki_page_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/wiki_redirect_test.rb b/test/unit/wiki_redirect_test.rb
index 584a671e3..8bae9cfd1 100644
--- a/test/unit/wiki_redirect_test.rb
+++ b/test/unit/wiki_redirect_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/wiki_test.rb b/test/unit/wiki_test.rb
index cd8f4ffd8..0f8cbf3d5 100644
--- a/test/unit/wiki_test.rb
+++ b/test/unit/wiki_test.rb
@@ -1,4 +1,6 @@
# encoding: utf-8
+# frozen_string_literal: false
+
#
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
diff --git a/test/unit/workflow_test.rb b/test/unit/workflow_test.rb
index a80288aba..a97a684cb 100644
--- a/test/unit/workflow_test.rb
+++ b/test/unit/workflow_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#
diff --git a/test/unit/workflow_transition_test.rb b/test/unit/workflow_transition_test.rb
index 62132c1cf..724834746 100644
--- a/test/unit/workflow_transition_test.rb
+++ b/test/unit/workflow_transition_test.rb
@@ -1,3 +1,5 @@
+# frozen_string_literal: false
+
# Redmine - project management software
# Copyright (C) 2006-2017 Jean-Philippe Lang
#