mirror of
https://github.com/discourse/discourse.git
synced 2025-09-08 12:06:51 +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
|
end
|
||||||
|
|
||||||
def server_plugin_outlet(name, locals: {})
|
def server_plugin_outlet(name, locals: {})
|
||||||
|
# Don't evaluate plugins in test
|
||||||
|
return "" if Rails.env.test?
|
||||||
|
|
||||||
matcher = Regexp.new("/connectors/#{name}/.*\.html\.erb$")
|
matcher = Regexp.new("/connectors/#{name}/.*\.html\.erb$")
|
||||||
erbs = ApplicationHelper.all_connectors.select { |c| c =~ matcher }
|
erbs = ApplicationHelper.all_connectors.select { |c| c =~ matcher }
|
||||||
return "" if erbs.blank?
|
return "" if erbs.blank?
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue