]> source.dussan.org Git - redmine.git/commitdiff
Fix ThemesTest may fail if a third-party theme having theme.js is installed (#40205).
authorMarius Balteanu <marius.balteanu@zitec.com>
Tue, 13 Feb 2024 22:58:30 +0000 (22:58 +0000)
committerMarius Balteanu <marius.balteanu@zitec.com>
Tue, 13 Feb 2024 22:58:30 +0000 (22:58 +0000)
git-svn-id: https://svn.redmine.org/redmine/trunk@22707 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/lib/redmine/themes_test.rb

index cabe52f3425e429380646bb8cf8bd7d71b10ca2b..857092b7ea5a4d076d1a92c20e788922f21a2192 100644 (file)
@@ -23,7 +23,7 @@ class ThemesTest < Redmine::IntegrationTest
 
   def setup
     Redmine::Themes.rescan
-    @theme = Redmine::Themes.themes.last
+    @theme = Redmine::Themes.theme('classic')
     Setting.ui_theme = @theme.id
   end