mirror of
https://github.com/discourse/discourse.git
synced 2025-09-06 10:50:21 +08:00
DEV: do not run plugin tests for server_plugin_outlet (#16880)
This commit is contained in:
parent
e8e9754a3c
commit
77a8a4bee6
1 changed files with 3 additions and 0 deletions
|
@ -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…
Add table
Add a link
Reference in a new issue