]> source.dussan.org Git - redmine.git/commitdiff
Merged r21102 to 4.1-stable (#35134).
authorMarius Balteanu <marius.balteanu@zitec.com>
Wed, 28 Jul 2021 15:53:32 +0000 (15:53 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Wed, 28 Jul 2021 15:53:32 +0000 (15:53 +0000)
git-svn-id: http://svn.redmine.org/redmine/branches/4.1-stable@21103 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/helpers/issues_helper_test.rb

index 991e7fe781bcc3661422ed55c717e4f1f76f59f3..86eef03d04f6f7a2129d8b2c6a523f741335e5c4 100644 (file)
@@ -367,7 +367,7 @@ class IssuesHelperTest < Redmine::HelperTest
         TimeEntry.generate!(:issue => Issue.generate!(:parent_issue_id => 1), :hours => 3)
         TimeEntry.generate!(:issue => Issue.generate!(:parent_issue_id => 1), :hours => 4)
 
-        assert_match "href=\"/projects/ecookbook/time_entries?issue_id=~1\"", issue_spent_hours_details(Issue.find(1))
+        assert_match "href=\"/projects/ecookbook/time_entries?issue_id=~1\"", CGI.unescape(issue_spent_hours_details(Issue.find(1)))
       end
     end
   end
@@ -378,7 +378,7 @@ class IssuesHelperTest < Redmine::HelperTest
         TimeEntry.generate!(:issue => Issue.generate!(:parent_issue_id => 1), :hours => 3)
         TimeEntry.generate!(:issue => Issue.generate!(:parent_issue_id => 1), :hours => 4)
 
-        assert_match "href=\"/time_entries?issue_id=~1\"", issue_spent_hours_details(Issue.find(1))
+        assert_match "href=\"/time_entries?issue_id=~1\"", CGI.unescape(issue_spent_hours_details(Issue.find(1)))
       end
     end
   end