Sha256: db907acb5fb87fdcec321895a857f4c24f2acdbcfcf7365d7fdf2b11a769ea3f

Contents?: true

Size: 1.09 KB

Versions: 34

Compression:

Stored size: 1.09 KB

Contents

require "singleton"
require "spec_helper"

describe Timber::Config, :rails_23 => true do
  let(:config) { Timber::Config.send(:new) }

  describe ".logrageify!" do
    it "should logrageify" do
      expect(Timber::Integrations::ActionController.silence?).to eq(false)
      expect(Timber::Integrations::ActionView.silence?).to eq(false)
      expect(Timber::Integrations::ActiveRecord.silence?).to eq(false)
      expect(Timber::Integrations::Rack::HTTPEvents.collapse_into_single_event?).to eq(false)

      config.logrageify!

      expect(Timber::Integrations::ActionController.silence?).to eq(true)
      expect(Timber::Integrations::ActionView.silence?).to eq(true)
      expect(Timber::Integrations::ActiveRecord.silence?).to eq(true)
      expect(Timber::Integrations::Rack::HTTPEvents.collapse_into_single_event?).to eq(true)

      # Reset
      Timber::Integrations::ActionController.silence = false
      Timber::Integrations::ActionView.silence = false
      Timber::Integrations::ActiveRecord.silence = false
      Timber::Integrations::Rack::HTTPEvents.collapse_into_single_event = false
    end
  end
end

Version data entries

34 entries across 34 versions & 1 rubygems

Version Path
timber-2.6.2 spec/timber/config_spec.rb
timber-2.6.1 spec/timber/config_spec.rb
timber-2.6.0 spec/timber/config_spec.rb
timber-2.6.0.pre.beta2 spec/timber/config_spec.rb
timber-2.6.0.pre.beta1 spec/timber/config_spec.rb
timber-2.5.1 spec/timber/config_spec.rb
timber-2.5.0 spec/timber/config_spec.rb
timber-2.4.0 spec/timber/config_spec.rb
timber-2.3.4 spec/timber/config_spec.rb
timber-2.3.3 spec/timber/config_spec.rb
timber-2.3.2 spec/timber/config_spec.rb
timber-2.3.1 spec/timber/config_spec.rb
timber-2.3.0 spec/timber/config_spec.rb
timber-2.2.3 spec/timber/config_spec.rb
timber-2.2.2 spec/timber/config_spec.rb
timber-2.2.1 spec/timber/config_spec.rb
timber-2.2.0 spec/timber/config_spec.rb
timber-2.1.10 spec/timber/config_spec.rb
timber-2.1.9 spec/timber/config_spec.rb
timber-2.1.8 spec/timber/config_spec.rb