mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 11:20:57 -06:00
DEV: allow running plugin tests for server_plugin_outlet (#16883)
This commit allows us to run plugin tests for `server_plugin_outlet` method.
This commit is contained in:
parent
eddb8891c4
commit
578955dcc9
@ -450,8 +450,7 @@ module ApplicationHelper
|
||||
end
|
||||
|
||||
def server_plugin_outlet(name, locals: {})
|
||||
# Don't evaluate plugins in test
|
||||
return "" if Rails.env.test?
|
||||
return "" if !GlobalSetting.load_plugins?
|
||||
|
||||
matcher = Regexp.new("/connectors/#{name}/.*\.html\.erb$")
|
||||
erbs = ApplicationHelper.all_connectors.select { |c| c =~ matcher }
|
||||
|
Loading…
Reference in New Issue
Block a user