Sha256: 35ac3b9482abb19f9e6a4b85bac2f80b82cc470700b6ddbafd50cc1ff3c99c53
Contents?: true
Size: 603 Bytes
Versions: 1
Compression:
Stored size: 603 Bytes
Contents
require "spec_helper" describe Timber::Probes::Logger do describe described_class::InstanceMethods do describe ".add" do let(:logger) { ::Logger.new(nil) } let(:context_class) { Timber::Contexts::Logger } it "should set the context" do expect(Timber::CurrentContext).to receive(:add).with(kind_of(context_class)).and_yield.once logger.info("test") end it "should ignore Config.logger" do expect(Timber::CurrentContext).to_not receive(:add).with(kind_of(context_class)) Timber::Config.logger.info("text") end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | spec/timber/probes/logger_spec.rb |