A platform for community discussion. Free, open, simple.
DEV: do not run plugin tests for server_plugin_outlet (#16880)
Arpit Jalan77a8a4bee632
diff --git a/app/helpers/application_helper.rb b/app/helpers/application_helper.rbindex 233e123122b..4f440541984 100644--- a/app/helpers/application_helper.rb+++ b/app/helpers/application_helper.rb@@ -450,6 +450,9 @@ module ApplicationHelperenddef server_plugin_outlet(name, locals: {})+ # 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?