From a79357bc280569670949a2ff2be178bfe791706f Mon Sep 17 00:00:00 2001 From: Jean-Philippe Lang Date: Sun, 18 Dec 2011 10:41:45 +0000 Subject: [PATCH] Make sure setting is not changed in test. git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@8281 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/unit/helpers/application_helper_test.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 2b9d3848d..ef649aeeb 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -787,10 +787,10 @@ RAW end def test_default_formatter - Setting.text_formatting = 'unknown' - text = 'a *link*: http://www.example.net/' - assert_equal '

a *link*: http://www.example.net/

', textilizable(text) - Setting.text_formatting = 'textile' + with_settings :text_formatting => 'unknown' do + text = 'a *link*: http://www.example.net/' + assert_equal '

a *link*: http://www.example.net/

', textilizable(text) + end end def test_due_date_distance_in_words -- 2.39.5