Skip to content

A platform for community discussion. Free, open, simple.

DEV: Add test ENV conditional back to server_plugin_outlet (#16878)

Isaac Janzen4b63cd384863
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rb
index ace6f424a95..a91abf702b0 100644
--- a/app/helpers/application_helper.rb
+++ b/app/helpers/application_helper.rb
@@ -450,6 +450,9 @@ module ApplicationHelper
end
def server_plugin_outlet(name, locals: nil)
+ # Don't evaluate plugins in test
+ return "" if Rails.env.test?
+
matcher = Regexp.new("/connectors/#{name}/.*\.html\.erb$")
erbs = ApplicationHelper.all_connectors.select { |c| c =~ matcher }
return "" if erbs.blank?