diff options
author | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-05 08:55:49 +0000 |
---|---|---|
committer | Toshi MARUYAMA <marutosijp2@yahoo.co.jp> | 2014-02-05 08:55:49 +0000 |
commit | 7928ce3797d8394a5cdd64a02002daf88f8e6252 (patch) | |
tree | fec761b143efee08f1c4aebcc03f87638913f40d | |
parent | 0a54a50813762fa2df13073dbce3186ed5ba310c (diff) | |
download | redmine-7928ce3797d8394a5cdd64a02002daf88f8e6252.tar.gz redmine-7928ce3797d8394a5cdd64a02002daf88f8e6252.zip |
Rails4: replace hard-coded html with class at ApplicationHelperTest#test_cross_project_redmine_links
See r12784 comment.
git-svn-id: http://svn.redmine.org/redmine/trunk@12820 e93f8b46-1217-0410-a6f0-8f06a7374b81
-rw-r--r-- | test/unit/helpers/application_helper_test.rb | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 847725c7f..a6236ae83 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -413,11 +413,13 @@ RAW to_test = { # documents 'document:"Test document"' => 'document:"Test document"', - 'ecookbook:document:"Test document"' => '<a href="/documents/1" class="document">Test document</a>', + 'ecookbook:document:"Test document"' => + link_to("Test document", "/documents/1", :class => "document"), 'invalid:document:"Test document"' => 'invalid:document:"Test document"', # versions 'version:"1.0"' => 'version:"1.0"', - 'ecookbook:version:"1.0"' => '<a href="/versions/2" class="version">1.0</a>', + 'ecookbook:version:"1.0"' => + link_to("1.0", "/versions/2", :class => "version"), 'invalid:version:"1.0"' => 'invalid:version:"1.0"', # changeset 'r2' => 'r2', |