Class: Yes::Core::TestSupport::TestHelper
- Inherits:
-
Object
- Object
- Yes::Core::TestSupport::TestHelper
- Defined in:
- lib/yes/core/test_support/test_helper.rb
Overview
Utility class for configuring and cleaning up Yes::Core in tests.
Class Method Summary collapse
-
.clean_up_config ⇒ void
Resets the Yes::Core configuration to a clean state.
Class Method Details
.clean_up_config ⇒ void
This method returns an undefined value.
Resets the Yes::Core configuration to a clean state.
11 12 13 14 15 16 17 18 19 20 21 22 |
# File 'lib/yes/core/test_support/test_helper.rb', line 11 def clean_up_config config = Yes::Core.configuration config.aggregate_shortcuts = false config.super_admin_check = ->(_auth_data) { false } config.logger = nil config.error_reporter = nil config.payload_store_client = nil config.process_commands_inline = true config.command_notifier_classes = [] config.otl_tracer = nil config.auth_adapter = nil end |