diff options
Diffstat (limited to 'test/unit')
127 files changed, 326 insertions, 72 deletions
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"><stuff> with html & special chars</danger></span> <span class="diff_out">other stuff <script>alert('foo');</alert></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"><stuff> with html & special chars</danger></span> <span class="diff_out">other stuff <script>alert('foo');</alert></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 # |