]> source.dussan.org Git - redmine.git/commitdiff
Fix random test failure of VersionsTextHelperTest#test_version_to_text (#36679).
authorGo MAEDA <maeda@farend.jp>
Sun, 16 Apr 2023 05:58:22 +0000 (05:58 +0000)
committerGo MAEDA <maeda@farend.jp>
Sun, 16 Apr 2023 05:58:22 +0000 (05:58 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22196 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/unit/lib/redmine/export/text/versions_text_helper_test.rb

index 92d62a53130cc24ccba02da55fb1e5a2b153670b..57c49a0632b567e81b54e44006f6061152a163b8 100644 (file)
@@ -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