##// END OF EJS Templates
Rails4: replace hard-coded html with class at ApplicationHelperTest#test_cross_project_redmine_links...
Toshi MARUYAMA -
r12545:7928ce3797d8
parent child
Show More
@@ -413,11 +413,13 RAW
413 to_test = {
413 to_test = {
414 # documents
414 # documents
415 'document:"Test document"' => 'document:"Test document"',
415 'document:"Test document"' => 'document:"Test document"',
416 'ecookbook:document:"Test document"' => '<a href="/documents/1" class="document">Test document</a>',
416 'ecookbook:document:"Test document"' =>
417 link_to("Test document", "/documents/1", :class => "document"),
417 'invalid:document:"Test document"' => 'invalid:document:"Test document"',
418 'invalid:document:"Test document"' => 'invalid:document:"Test document"',
418 # versions
419 # versions
419 'version:"1.0"' => 'version:"1.0"',
420 'version:"1.0"' => 'version:"1.0"',
420 'ecookbook:version:"1.0"' => '<a href="/versions/2" class="version">1.0</a>',
421 'ecookbook:version:"1.0"' =>
422 link_to("1.0", "/versions/2", :class => "version"),
421 'invalid:version:"1.0"' => 'invalid:version:"1.0"',
423 'invalid:version:"1.0"' => 'invalid:version:"1.0"',
422 # changeset
424 # changeset
423 'r2' => 'r2',
425 'r2' => 'r2',
General Comments 0
You need to be logged in to leave comments. Login now