comparison test/unit/lib/redmine/wiki_formatting_test.rb @ 1517:dffacf8a6908 redmine-2.5

Update to Redmine SVN revision 13367 on 2.5-stable branch
author Chris Cannam
date Tue, 09 Sep 2014 09:29:00 +0100
parents e248c7af89ec
children
comparison
equal deleted inserted replaced
1516:b450a9d58aed 1517:dffacf8a6908
28 def test_null_formatter 28 def test_null_formatter
29 assert_equal Redmine::WikiFormatting::NullFormatter::Formatter, Redmine::WikiFormatting.formatter_for('') 29 assert_equal Redmine::WikiFormatting::NullFormatter::Formatter, Redmine::WikiFormatting.formatter_for('')
30 assert_equal Redmine::WikiFormatting::NullFormatter::Helper, Redmine::WikiFormatting.helper_for('') 30 assert_equal Redmine::WikiFormatting::NullFormatter::Helper, Redmine::WikiFormatting.helper_for('')
31 end 31 end
32 32
33 def test_formats_for_select
34 assert_include ['Textile', 'textile'], Redmine::WikiFormatting.formats_for_select
35 end
36
33 def test_should_link_urls_and_email_addresses 37 def test_should_link_urls_and_email_addresses
34 raw = <<-DIFF 38 raw = <<-DIFF
35 This is a sample *text* with a link: http://www.redmine.org 39 This is a sample *text* with a link: http://www.redmine.org
36 and an email address foo@example.net 40 and an email address foo@example.net
37 DIFF 41 DIFF