Sha256: 9566908828ee4d5b3a8bad1fbd39e90bf6e9364705e59bcbca7d6e9e5f30c4c9
Contents?: true
Size: 794 Bytes
Versions: 1
Compression:
Stored size: 794 Bytes
Contents
require_relative "../../helper" require_relative "../../../lib/fabriq/logging" describe Fabriq::Logging do before do @config = mock('Config') @logging = Object.new @logging.extend(Fabriq::Logging) @logging.stubs(:config).returns(@config) end describe '#info' do it "logs a message using the info severity" do @logging.expects(:send_output).with(:info ,"Test") @logging.info("Test") end end describe '#error' do it "logs a message using the error severity" do @logging.expects(:send_output).with(:error ,"Test") @logging.error("Test") end end describe '#debug' do it "logs a message using the debug severity" do @logging.expects(:send_output).with(:debug ,"Test") @logging.debug("Test") end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
fabriq-0.1.0 | spec/lib/fabriq/logging_spec.rb |