Sha256: f29490e1ba260bf30d4338788d2fb7ecbc0171c3e94b885c39af4d40e509fb4c
Contents?: true
Size: 714 Bytes
Versions: 1
Compression:
Stored size: 714 Bytes
Contents
# Must require last in order to be mocked via webmock require 'timber' # Config Timber::Config.tap do |config| config.application_key = "my_key" config.logger.level = ::Logger::FATAL end RSpec.configure do |config| config.after(:each) do Timber::CurrentLineIndexes.reset! Timber::LogDevices::HTTP::LogPile.each { |log_pile| log_pile.empty } # Reset permanent context caches since we mock, etc. Timber::CurrentContext.send(:stack).each do |context| context.instance_variable_set(:"@as_json", nil) context.instance_variable_set(:"@json_payload", nil) context.instance_variable_set(:"@to_json", nil) context.instance_variable_set(:"@to_logfmt", nil) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | spec/support/timber.rb |