From: Toshi MARUYAMA Date: Wed, 5 Feb 2014 00:42:34 +0000 (+0000) Subject: Rails4: replace hard-coded html with class at ApplicationHelperTest#test_redmine_link... X-Git-Tag: 2.5.0~94 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=52b5a26507b32bcf06179ef8685b58822df74c42;p=redmine.git Rails4: replace hard-coded html with class at ApplicationHelperTest#test_redmine_links_with_a_different_project_before_current_project See r12784 comment. git-svn-id: http://svn.redmine.org/redmine/trunk@12806 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- diff --git a/test/unit/helpers/application_helper_test.rb b/test/unit/helpers/application_helper_test.rb index 2c1edb0aa..dda39a240 100644 --- a/test/unit/helpers/application_helper_test.rb +++ b/test/unit/helpers/application_helper_test.rb @@ -376,10 +376,11 @@ RAW def test_redmine_links_with_a_different_project_before_current_project vp1 = Version.generate!(:project_id => 1, :name => '1.4.4') vp3 = Version.generate!(:project_id => 3, :name => '1.4.4') - @project = Project.find(3) - assert_equal %(

1.4.4 1.4.4

), - textilizable("ecookbook:version:1.4.4 version:1.4.4") + result1 = link_to("1.4.4", "/versions/#{vp1.id}", :class => "version") + result2 = link_to("1.4.4", "/versions/#{vp3.id}", :class => "version") + assert_equal "

#{result1} #{result2}

", + textilizable("ecookbook:version:1.4.4 version:1.4.4") end def test_escaped_redmine_links_should_not_be_parsed