mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 03:16:41 +08:00
DEV: do not run plugin tests for server_plugin_outlet (#16880)
This commit is contained in:
parent
e8e9754a3c
commit
77a8a4bee6
|
@ -450,6 +450,9 @@ module ApplicationHelper
|
|||
end
|
||||
|
||||
def 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?
|
||||
|
|
Loading…
Reference in New Issue
Block a user