summaryrefslogtreecommitdiffstats
path: root/test/functional/issues_controller_test.rb
diff options
context:
space:
mode:
authorMarius Balteanu <marius.balteanu@zitec.com>2024-05-03 08:24:49 +0000
committerMarius Balteanu <marius.balteanu@zitec.com>2024-05-03 08:24:49 +0000
commita4abae2324ef2d420a9cc99cb9867a89e5380004 (patch)
treefaf36a29de84eca7bfa561cb956324c56400c7a2 /test/functional/issues_controller_test.rb
parent473db7e83b10fa233bb66e965cdf370b1a077fc3 (diff)
downloadredmine-a4abae2324ef2d420a9cc99cb9867a89e5380004.tar.gz
redmine-a4abae2324ef2d420a9cc99cb9867a89e5380004.zip
Fixes failing tests on postgresql (#29894).
git-svn-id: https://svn.redmine.org/redmine/trunk@22808 e93f8b46-1217-0410-a6f0-8f06a7374b81
Diffstat (limited to 'test/functional/issues_controller_test.rb')
-rw-r--r--test/functional/issues_controller_test.rb8
1 files changed, 7 insertions, 1 deletions
diff --git a/test/functional/issues_controller_test.rb b/test/functional/issues_controller_test.rb
index 7b8147ece..f7c879188 100644
--- a/test/functional/issues_controller_test.rb
+++ b/test/functional/issues_controller_test.rb
@@ -1981,7 +1981,13 @@ class IssuesControllerTest < Redmine::ControllerTest
)
assert_response :success
- assert_include "\"#{User.find(1).name}\n#{User.find(3).name}\"", response.body
+
+ lines = CSV.parse(response.body)
+ # Issue with ID 2 is the second issue in the CSV
+ # Column 3 is watchers_users
+ watchers = lines[2][2].split("\n").sort
+
+ assert_equal [User.find(3).name, User.find(1).name], watchers
end
def test_index_with_estimated_hours_total