From 3c8b9535a38a2675d6f41ab34c6def38f98a7421 Mon Sep 17 00:00:00 2001 From: Go MAEDA Date: Sun, 16 Apr 2023 05:58:22 +0000 Subject: [PATCH] Fix random test failure of VersionsTextHelperTest#test_version_to_text (#36679). git-svn-id: https://svn.redmine.org/redmine/trunk@22196 e93f8b46-1217-0410-a6f0-8f06a7374b81 --- .../unit/lib/redmine/export/text/versions_text_helper_test.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/test/unit/lib/redmine/export/text/versions_text_helper_test.rb b/test/unit/lib/redmine/export/text/versions_text_helper_test.rb index 92d62a531..57c49a063 100644 --- a/test/unit/lib/redmine/export/text/versions_text_helper_test.rb +++ b/test/unit/lib/redmine/export/text/versions_text_helper_test.rb @@ -36,6 +36,8 @@ class VersionsTextHelperTest < ActiveSupport::TestCase * Bug #11: Closed issue on a closed version EXPECTED - assert_equal expected, version_to_text(Version.find(1)) + with_settings date_format: '%m/%d/%Y' do + assert_equal expected, version_to_text(Version.find(1)) + end end end -- 2.39.5