From: Go MAEDA Date: Sun, 16 Apr 2023 05:58:22 +0000 (+0000) Subject: Fix random test failure of VersionsTextHelperTest#test_version_to_text (#36679). X-Git-Tag: 5.1.0~167 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=3c8b9535a38a2675d6f41ab34c6def38f98a7421;p=redmine.git 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 --- 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