Module: StandardLedger::RSpec::Helpers

Defined in:
lib/standard_ledger/rspec/helpers.rb

Overview

Convenience methods auto-included into every RSpec example group when the host loads ‘require “standard_ledger/rspec”`. The actual override map lives on `StandardLedger` itself so non-RSpec callers (e.g. a background job spec running outside RSpec) can use the same API.

Instance Method Summary collapse

Instance Method Details

#with_modes(overrides, &block) ⇒ Object

Forwards to ‘StandardLedger.with_modes` so specs can write `with_modes(…) { … }` instead of the fully-qualified form.



10
11
12
# File 'lib/standard_ledger/rspec/helpers.rb', line 10

def with_modes(overrides, &block)
  StandardLedger.with_modes(overrides, &block)
end