diff --git a/test/helpers/application_helper_test.rb b/test/helpers/application_helper_test.rb index a6733f7b0..77da9b06f 100644 --- a/test/helpers/application_helper_test.rb +++ b/test/helpers/application_helper_test.rb @@ -629,9 +629,14 @@ class ApplicationHelperTest < Redmine::HelperTest hg_changeset_link = link_to('ecookbook:hg1|abcd', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :repository_id => 'hg1', :rev => 'abcd'}, :class => 'changeset', :title => '') - source_link = link_to('ecookbook:source:some/file', {:controller => 'repositories', :action => 'entry', :id => 'ecookbook', :repository_id => 10, :path => ['some', 'file']}, :class => 'source') - hg_source_link = link_to('ecookbook:source:hg1|some/file', {:controller => 'repositories', :action => 'entry', :id => 'ecookbook', :repository_id => 'hg1', :path => ['some', 'file']}, :class => 'source') - + source_link = link_to('ecookbook:source:some/file', + {:controller => 'repositories', :action => 'entry', + :id => 'ecookbook', :repository_id => 10, + :path => ['some', 'file']}, :class => 'source') + hg_source_link = link_to('ecookbook:source:hg1|some/file', + {:controller => 'repositories', :action => 'entry', + :id => 'ecookbook', :repository_id => 'hg1', + :path => ['some', 'file']}, :class => 'source') to_test = { 'ecookbook:r2' => changeset_link, 'ecookbook:svn1|r123' => svn_changeset_link, @@ -645,7 +650,6 @@ class ApplicationHelperTest < Redmine::HelperTest 'ecookbook:source:invalid|some/file' => 'ecookbook:source:invalid|some/file', 'invalid:source:invalid|some/file' => 'invalid:source:invalid|some/file', } - @project = Project.find(3) to_test.each { |text, result| assert_equal "
#{result}
", textilizable(text), "#{text} failed" } end @@ -1387,8 +1391,12 @@ class ApplicationHelperTest < Redmine::HelperTest RAW @project = Project.find(1) set_language_if_valid 'en' - result = textilizable(raw, :edit_section_links => {:controller => 'wiki', :action => 'edit', :project_id => '1', :id => 'Test'}).gsub("\n", "") - + result = textilizable( + raw, + :edit_section_links => + {:controller => 'wiki', :action => 'edit', + :project_id => '1', :id => 'Test'} + ).gsub("\n", "") # heading that contains inline code assert_match Regexp.new('