mirror of
https://github.com/discourse/discourse.git
synced 2025-02-08 04:18:23 +00: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
|
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…
x
Reference in New Issue
Block a user