A platform for community discussion. Free, open, simple.
DEV: Define theme test modules under a `/test` subdirectory (#13158)
David Taylorea61bcaf1329
diff --git a/app/models/theme.rb b/app/models/theme.rbindex fd11e64f97b..97d26ed1385 100644--- a/app/models/theme.rb+++ b/app/models/theme.rb@@ -141,7 +141,7 @@ class Theme < ActiveRecord::BaseSvgSprite.expire_cacheend- BASE_COMPILER_VERSION = 50+ BASE_COMPILER_VERSION = 51def self.compiler_versionget_set_cache "compiler_version" dodependencies = [diff --git a/app/models/theme_field.rb b/app/models/theme_field.rbindex 9ed1e64cff8..a181248f929 100644--- a/app/models/theme_field.rb+++ b/app/models/theme_field.rb@@ -151,6 +151,7 @@ class ThemeField < ActiveRecord::Basejs_compiler = ThemeJavascriptCompiler.new(theme_id, theme.name)filename, extension = name.split(".", 2)+ filename = "test/#{filename}" if js_tests_field?begincase extensionwhen "js.es6", "js"