diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index 24761e126..28d47ce5e 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -86,8 +86,10 @@ class ApplicationHelperTest < Redmine::HelperTest '(see inline link : http://www.foo.bar/Test).', '(see "inline link":http://www.foo.bar/Test_(foobar))' => '(see inline link)', - '(see "inline link":http://www.foo.bar/Test)' => '(see inline link)', - '(see "inline link":http://www.foo.bar/Test).' => '(see inline link).', + '(see "inline link":http://www.foo.bar/Test)' => + '(see inline link)', + '(see "inline link":http://www.foo.bar/Test).' => + '(see inline link).', 'www.foo.bar' => 'www.foo.bar', 'http://foo.bar/page?p=1&t=z&s=' => 'http://foo.bar/page?p=1&t=z&s=', @@ -482,20 +484,25 @@ class ApplicationHelperTest < Redmine::HelperTest 'source:/some/file@branch' => link_to('source:/some/file@branch', source_url_with_branch, :class => 'source'), 'source:/some/file.ext@52' => link_to('source:/some/file.ext@52', source_url_with_rev_and_ext, :class => 'source'), 'source:/some/file#L110' => link_to('source:/some/file#L110', source_url + "#L110", :class => 'source'), - 'source:/some/file.ext#L110' => link_to('source:/some/file.ext#L110', source_url_with_ext + "#L110", :class => 'source'), - 'source:/some/file@52#L110' => link_to('source:/some/file@52#L110', source_url_with_rev + "#L110", :class => 'source'), + 'source:/some/file.ext#L110' => + link_to('source:/some/file.ext#L110', source_url_with_ext + "#L110", :class => 'source'), + 'source:/some/file@52#L110' => + link_to('source:/some/file@52#L110', source_url_with_rev + "#L110", :class => 'source'), # export 'export:/some/file' => link_to('export:/some/file', export_url, :class => 'source download'), 'export:/some/file.ext' => link_to('export:/some/file.ext', export_url_with_ext, :class => 'source download'), 'export:/some/file@52' => link_to('export:/some/file@52', export_url_with_rev, :class => 'source download'), - 'export:/some/file.ext@52' => link_to('export:/some/file.ext@52', export_url_with_rev_and_ext, :class => 'source download'), - 'export:/some/file@branch' => link_to('export:/some/file@branch', export_url_with_branch, :class => 'source download'), + 'export:/some/file.ext@52' => + link_to('export:/some/file.ext@52', export_url_with_rev_and_ext, :class => 'source download'), + 'export:/some/file@branch' => + link_to('export:/some/file@branch', export_url_with_branch, :class => 'source download'), # forum 'forum#2' => link_to('Discussion', board_url, :class => 'board'), 'forum:Discussion' => link_to('Discussion', board_url, :class => 'board'), # message 'message#4' => link_to('Post 2', message_url, :class => 'message'), - 'message#5' => link_to('RE: post 2', message_url.merge(:anchor => 'message-5', :r => 5), :class => 'message'), + 'message#5' => + link_to('RE: post 2', message_url.merge(:anchor => 'message-5', :r => 5), :class => 'message'), # news 'news#1' => link_to('eCookbook first release !', news_url, :class => 'news'), 'news:"eCookbook first release !"' => link_to('eCookbook first release !', news_url, :class => 'news'), @@ -1380,8 +1387,9 @@ class ApplicationHelperTest < Redmine::HelperTest def test_headings raw = 'h1. Some heading' - expected = %|\n
a *link*: http://www.example.net/
', textilizable(text) + assert_equal( + 'a *link*: ' \ + 'http://www.example.net/
', + textilizable(text) + ) end end