Module: RailsSemanticLogging::RSpec::Helpers
- Defined in:
- lib/rails_semantic_logging/rspec/helpers.rb
Overview
Test helpers for applications using RailsSemanticLogging.
Provides standalone helpers that work with or without TestProf:
-
LoggingHelpers: with_logging / with_ar_logging (uses SemanticLogger.silence)
-
SilenceOutput: capture stdout in tests
-
Appender validation (ensures single appender at trace level)
-
LOG env var support (LOG=all or LOG=ar to enable logging in tests)
Usage:
require 'rails_semantic_logging/rspec/helpers'
RailsSemanticLogging::RSpec::Helpers.install!
Defined Under Namespace
Modules: LoggingHelpers, SilenceOutput
Class Method Summary collapse
-
.install! ⇒ Object
Installs all test helpers into RSpec configuration.
Class Method Details
.install! ⇒ Object
Installs all test helpers into RSpec configuration.
45 46 47 48 |
# File 'lib/rails_semantic_logging/rspec/helpers.rb', line 45 def install! configure_rspec! patch_test_prof! end |