Skip to content

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.rb
index fd11e64f97b..97d26ed1385 100644
--- a/app/models/theme.rb
+++ b/app/models/theme.rb
@@ -141,7 +141,7 @@ class Theme < ActiveRecord::Base
SvgSprite.expire_cache
end
- BASE_COMPILER_VERSION = 50
+ BASE_COMPILER_VERSION = 51
def self.compiler_version
get_set_cache "compiler_version" do
dependencies = [
diff --git a/app/models/theme_field.rb b/app/models/theme_field.rb
index 9ed1e64cff8..a181248f929 100644
--- a/app/models/theme_field.rb
+++ b/app/models/theme_field.rb
@@ -151,6 +151,7 @@ class ThemeField < ActiveRecord::Base
js_compiler = ThemeJavascriptCompiler.new(theme_id, theme.name)
filename, extension = name.split(".", 2)
+ filename = "test/#{filename}" if js_tests_field?
begin
case extension
when "js.es6", "js"