diff options
author | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-03-08 17:41:43 +0000 |
---|---|---|
committer | Jean-Philippe Lang <jp_lang@yahoo.fr> | 2015-03-08 17:41:43 +0000 |
commit | 7c9f3b5b4364ddef2a54a1ce853415d2e3c13906 (patch) | |
tree | 7144b76de691b93fa2197a258cff14e7cab38be0 /test/unit/setting_test.rb | |
parent | a5b18b631ceb31c4c0fc7b0bec1ebdb0285e762a (diff) | |
download | redmine-7c9f3b5b4364ddef2a54a1ce853415d2e3c13906.tar.gz redmine-7c9f3b5b4364ddef2a54a1ce853415d2e3c13906.zip |
Reverts r14067 that triggers "can't modify frozen String" errors (#19305).
git-svn-id: http://svn.redmine.org/redmine/trunk@14068 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/setting_test.rb')
-rw-r--r-- | test/unit/setting_test.rb | 16 |
1 files changed, 0 insertions, 16 deletions
diff --git a/test/unit/setting_test.rb b/test/unit/setting_test.rb index d2dee6d6b..46383e867 100644 --- a/test/unit/setting_test.rb +++ b/test/unit/setting_test.rb @@ -1,5 +1,3 @@ -# encoding: utf-8 -# # Redmine - project management software # Copyright (C) 2006-2015 Jean-Philippe Lang # @@ -103,18 +101,4 @@ class SettingTest < ActiveSupport::TestCase assert_equal [10, 25, 50], Setting.per_page_options_array end end - - def test_serialized_setting_should_be_loaded_as_utf8_encoded_strings - scm = 'исправлено' - scm.force_encoding('BINARY') - Setting.enabled_scm = [scm] - Setting.clear_cache - - s = Setting.enabled_scm - assert_equal ['исправлено'], s - assert_equal 'UTF-8', s.first.encoding.name - ensure - Setting.where(:name => 'enabled_scm').delete_all - Setting.clear_cache - end end |