From f700f1098499a569eea4890c7bc48f865bf257bb Mon Sep 17 00:00:00 2001 From: Marius Balteanu Date: Wed, 28 Jul 2021 15:51:09 +0000 Subject: [PATCH] Fixes failing tests on Ruby 2.4 (#35134). git-svn-id: http://svn.redmine.org/redmine/branches/4.2-stable@21102 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- test/helpers/issues_helper_test.rb | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/test/helpers/issues_helper_test.rb b/test/helpers/issues_helper_test.rb index 28a520b3e..4e91598b8 100644 --- a/test/helpers/issues_helper_test.rb +++ b/test/helpers/issues_helper_test.rb @@ -382,7 +382,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 @@ -393,7 +393,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 -- 2.39.5