Handle the case of a text formatter that doesn't support section edit (#2222).
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/trunk@7831 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
@@ -42,4 +42,14 @@ EXPECTED
|
||||
|
||||
assert_equal expected.gsub(%r{[\r\n\t]}, ''), Redmine::WikiFormatting::NullFormatter::Formatter.new(raw).to_html.gsub(%r{[\r\n\t]}, '')
|
||||
end
|
||||
|
||||
def test_supports_section_edit
|
||||
with_settings :text_formatting => 'textile' do
|
||||
assert_equal true, Redmine::WikiFormatting.supports_section_edit?
|
||||
end
|
||||
|
||||
with_settings :text_formatting => '' do
|
||||
assert_equal false, Redmine::WikiFormatting.supports_section_edit?
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user