mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
DEV: Fix constant redefinition warnings when running specs (#29837)
Don't load rake files over and over again when running specs.
This commit is contained in:
committed by
GitHub
parent
abfd065ff0
commit
6e1aeb1f50
@@ -291,6 +291,7 @@ RSpec.configure do |config|
|
||||
|
||||
DiscoursePluginRegistry.reset! if ENV["LOAD_PLUGINS"] != "1"
|
||||
Discourse.current_user_provider = TestCurrentUserProvider
|
||||
Discourse::Application.load_tasks
|
||||
|
||||
SiteSetting.refresh!
|
||||
|
||||
|
||||
Reference in New Issue
Block a user