]> source.dussan.org Git - redmine.git/commitdiff
ThemesTest#test_without_theme_js may fail if third-party theme is installed (#25118).
authorJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 2 Mar 2017 18:20:17 +0000 (18:20 +0000)
committerJean-Philippe Lang <jp_lang@yahoo.fr>
Thu, 2 Mar 2017 18:20:17 +0000 (18:20 +0000)
Patch by Go MAEDA.

git-svn-id: http://svn.redmine.org/redmine/trunk@16347 e93f8b46-1217-0410-a6f0-8f06a7374b81

test/integration/lib/redmine/themes_test.rb

index 65968afcf5318883966aaea8c518f22899ac6df9..200c0c286d8be57973560af874af1b7c1817d34f 100644 (file)
@@ -37,6 +37,8 @@ class ThemesTest < Redmine::IntegrationTest
   end
 
   def test_without_theme_js
+    # simulate a state theme.js does not exists
+    @theme.javascripts.clear
     get '/'
 
     assert_response :success