Sha256: 0a01a06b52939a21c51e57cdfc8197cbd5e2f657f6189f2c0c1a91c74eaadc37
Contents?: true
Size: 421 Bytes
Versions: 7
Compression:
Stored size: 421 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 eq "[knapsack_pro] Test message\n" } end end end
Version data entries
7 entries across 7 versions & 1 rubygems