From: Jean-Philippe Lang Date: Sun, 18 Dec 2011 10:41:45 +0000 (+0000) Subject: Make sure setting is not changed in test. X-Git-Tag: 1.4.0~1006 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=a79357bc280569670949a2ff2be178bfe791706f;p=redmine.git 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 --- 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