diff options
Diffstat (limited to 'test')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 2 | ||||
-rw-r--r-- | test/unit/lib/redmine/wiki_formatting_test.rb | 4 |
2 files changed, 3 insertions, 3 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 2fcb0309c..a9dd4b3b4 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -940,7 +940,7 @@ RAW def test_default_formatter 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) + assert_equal '<p>a *link*: <a class="external" href="http://www.example.net/">http://www.example.net/</a></p>', textilizable(text) end end diff --git a/test/unit/lib/redmine/wiki_formatting_test.rb b/test/unit/lib/redmine/wiki_formatting_test.rb index 909acdea7..915b08621 100644 --- a/test/unit/lib/redmine/wiki_formatting_test.rb +++ b/test/unit/lib/redmine/wiki_formatting_test.rb @@ -36,8 +36,8 @@ and an email address foo@example.net DIFF expected = <<-EXPECTED -<p>This is a sample *text* with a link: <a href="http://www.redmine.org">http://www.redmine.org</a><br /> -and an email address <a href="mailto:foo@example.net">foo@example.net</a></p> +<p>This is a sample *text* with a link: <a class="external" href="http://www.redmine.org">http://www.redmine.org</a><br /> +and an email address <a class="email" href="mailto:foo@example.net">foo@example.net</a></p> EXPECTED assert_equal expected.gsub(%r{[\r\n\t]}, ''), Redmine::WikiFormatting::NullFormatter::Formatter.new(raw).to_html.gsub(%r{[\r\n\t]}, '') |