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:
parent
b549523e4b
commit
a79357bc28
|
@ -787,10 +787,10 @@ RAW
|
||||||
end
|
end
|
||||||
|
|
||||||
def test_default_formatter
|
def test_default_formatter
|
||||||
Setting.text_formatting = 'unknown'
|
with_settings :text_formatting => 'unknown' do
|
||||||
text = 'a *link*: http://www.example.net/'
|
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)
|
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
|
end
|
||||||
|
|
||||||
def test_due_date_distance_in_words
|
def test_due_date_distance_in_words
|
||||||
|
|
Loading…
Reference in New Issue