Sha256: 8d2aedf3867de1bd231c5df72f608ce23833e10cb652b9f727ca1998f3fbbd12

Contents?: true

Size: 427 Bytes

Versions: 63

Compression:

Stored size: 427 Bytes

Contents

describe KnapsackPro::LoggerWrapper do
  let(:io) { StringIO.new }
  let(:logger) { ::Logger.new(io) }
  let(:logger_wrapper) { described_class.new(logger) }

  subject { io.string }

  [:debug, :info, :warn, :error, :fatal].each do |log_level|
    describe "##{log_level}" do
      before { logger_wrapper.public_send(log_level, 'Test message') }

      it { should include "[knapsack_pro] Test message\n" }
    end
  end
end

Version data entries

63 entries across 63 versions & 1 rubygems

Version Path
knapsack_pro-1.0.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.57.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.56.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.55.2 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.55.1 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.55.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.54.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.53.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.52.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.51.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.50.1 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.50.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.49.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.48.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.47.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.46.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.45.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.44.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.43.0 spec/knapsack_pro/logger_wrapper_spec.rb
knapsack_pro-0.42.0 spec/knapsack_pro/logger_wrapper_spec.rb