Sha256: 7934751a225229053675b785c777f8299d16b2d3a49908dbb708cf3fe5a9be77
Contents?: true
Size: 401 Bytes
Versions: 89
Compression:
Stored size: 401 Bytes
Contents
require 'spec_helper' module Itamae describe Logger do let(:io) { StringIO.new } before do Logger.log_device = io end [:fatal, :error, :warn, :info, :debug].each do |level| describe "##{level}" do it "puts #{level} log" do Logger.public_send(level, "CONTENT") expect(io.string).to include('CONTENT') end end end end end
Version data entries
89 entries across 89 versions & 1 rubygems