Sha256: 5fc54ab293b59864abd0b9de2b77db514a093d66e29d3d69d9640f4af7469ede
Contents?: true
Size: 833 Bytes
Versions: 1
Compression:
Stored size: 833 Bytes
Contents
require "spec_helper" describe Timber::Bootstrap do describe ".bootstrap!" do let(:middleware) { Rack::Builder.new } let(:insert_before) { ::Rails::Rack::Logger } def self.it_should_not_bootstrap it "should not bootstrap" do expect(Timber::Probes).to_not receive(:insert!) expect(described_class.bootstrap!(middleware, insert_before)).to be false end end def self.it_should_bootstrap it "should bootstrap" do expect(Timber::Probes).to receive(:insert!).once expect(described_class.bootstrap!(middleware, insert_before)).to be true end end it_should_bootstrap context "disabled" do before(:each) { Timber::Config.enabled = false } after(:each) { Timber::Config.enabled = true } it_should_not_bootstrap end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
timberio-1.0.0.beta1 | spec/timber/bootstrap_spec.rb |