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
This commit is contained in:
Jean-Philippe Lang 2011-12-18 10:41:45 +00:00
parent b549523e4b
commit a79357bc28
1 changed files with 4 additions and 4 deletions

View File

@ -787,10 +787,10 @@ RAW
end
def test_default_formatter
Setting.text_formatting = 'unknown'
with_settings :text_formatting => 'unknown' do
text = 'a *link*: http://www.example.net/'
assert_equal '<p>a *link*: <a href="http://www.example.net/">http://www.example.net/</a></p>', textilizable(text)
Setting.text_formatting = 'textile'
end
end
def test_due_date_distance_in_words