##// 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 401 end
402 402
403 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']},
405 :class => 'source')
406
407 changeset_link = link_to('ecookbook:r2', {:controller => 'repositories', :action => 'revision', :id => 'ecookbook', :rev => 2},
408 :class => 'changeset', :title => 'This commit fixes #1, #2 and references #1 & #3')
409
404 source_link = link_to('ecookbook:source:/some/file',
405 {:controller => 'repositories', :action => 'entry',
406 :id => 'ecookbook', :path => ['some', 'file']},
407 :class => 'source')
408 changeset_link = link_to('ecookbook:r2',
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 413 to_test = {
411 414 # documents
412 415 'document:"Test document"' => 'document:"Test document"',
@@ -426,7 +429,9 RAW
426 429 'invalid:source:/some/file' => 'invalid:source:/some/file',
427 430 }
428 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 435 end
431 436
432 437 def test_multiple_repositories_redmine_links
General Comments 0
You need to be logged in to leave comments. Login now