diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 2b9d384..ef649ae 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