diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-05 08:55:32 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-05 08:55:32 +0000 |
commit | 0a54a50813762fa2df13073dbce3186ed5ba310c (patch) | |
tree | ca4bb946384cac2b8e962aeff0f00abcb85acc1c /test/unit/helpers | |
parent | 2bcd63ad28de31cfd230e03b872d79802e112904 (diff) | |
download | redmine-0a54a50813762fa2df13073dbce3186ed5ba310c.tar.gz redmine-0a54a50813762fa2df13073dbce3186ed5ba310c.zip |
code format clean up ApplicationHelperTest#test_cross_project_redmine_links
git-svn-id: http://svn.redmine.org/redmine/trunk@12819 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/unit/helpers')
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 19 |
1 files changed, 12 insertions, 7 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 09cd91623..847725c7f 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -401,12 +401,15 @@ RAW end def test_cross_project_redmine_links - source_link = link_to('ecookbook:source:/some/file', {:controller => 'repositories', :action => 'entry', :id => 'ecookbook', :path => ['some', 'file']}, - :class => 'source') - - changeset_link = link_to('ecookbook:r2', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 2}, - :class => 'changeset', :title => 'This commit fixes #1, #2 and references #1 & #3') - + source_link = link_to('ecookbook:source:/some/file', + {:controller => 'repositories', :action => 'entry', + :id => 'ecookbook', :path => ['some', 'file']}, + :class => 'source') + changeset_link = link_to('ecookbook:r2', + {:controller => 'repositories', :action => 'revision', + :id => 'ecookbook', :rev => 2}, + :class => 'changeset', + :title => 'This commit fixes #1, #2 and references #1 & #3') to_test = { # documents 'document:"Test document"' => 'document:"Test document"', @@ -426,7 +429,9 @@ RAW 'invalid:source:/some/file' => 'invalid:source:/some/file', } @project = Project.find(3) - to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text), "#{text} failed" } + to_test.each do |text, result| + assert_equal "<p>#{result}</p>", textilizable(text), "#{text} failed" + end end def test_multiple_repositories_redmine_links |