##// END OF EJS Templates
code format clean up ApplicationHelperTest#test_cross_project_redmine_links...
Toshi MARUYAMA -
r12544:0a54a5081376
parent child
Show More
@@ -401,12 +401,15 RAW
401 end
401 end
402
402
403 def test_cross_project_redmine_links
403 def test_cross_project_redmine_links
404 source_link = link_to('ecookbook:source:/some/file', {:controller => 'repositories', :action => 'entry', :id => 'ecookbook', :path => ['some', 'file']},
404 source_link = link_to('ecookbook:source:/some/file',
405 :class => 'source')
405 {:controller => 'repositories', :action => 'entry',
406
406 :id => 'ecookbook', :path => ['some', 'file']},
407 changeset_link = link_to('ecookbook:r2', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 2},
407 :class => 'source')
408 :class => 'changeset', :title => 'This commit fixes #1, #2 and references #1 & #3')
408 changeset_link = link_to('ecookbook:r2',
409
409 {:controller => 'repositories', :action => 'revision',
410 :id => 'ecookbook', :rev => 2},
411 :class => 'changeset',
412 :title => 'This commit fixes #1, #2 and references #1 & #3')
410 to_test = {
413 to_test = {
411 # documents
414 # documents
412 'document:"Test document"' => 'document:"Test document"',
415 'document:"Test document"' => 'document:"Test document"',
@@ -426,7 +429,9 RAW
426 'invalid:source:/some/file' => 'invalid:source:/some/file',
429 'invalid:source:/some/file' => 'invalid:source:/some/file',
427 }
430 }
428 @project = Project.find(3)
431 @project = Project.find(3)
429 to_test.each { |text, result| assert_equal "<p>#{result}</p>", textilizable(text), "#{text} failed" }
432 to_test.each do |text, result|
433 assert_equal "<p>#{result}</p>", textilizable(text), "#{text} failed"
434 end
430 end
435 end
431
436
432 def test_multiple_repositories_redmine_links
437 def test_multiple_repositories_redmine_links
General Comments 0
You need to be logged in to leave comments. Login now