Sha256: 6e22dd16478ed2c808712ffdc7b1dcb2d5dbbfd0470513d6ce31713a005fe396
Contents?: true
Size: 695 Bytes
Versions: 3
Compression:
Stored size: 695 Bytes
Contents
# encoding: utf-8 require 'spec_helper' require 'logger' describe FiniteMachine::Logger do let(:message) { 'error' } let(:log) { double } subject(:logger) { described_class } before { allow(FiniteMachine).to receive(:logger) { log } } it "debugs message call" do expect(log).to receive(:debug).with(message) logger.debug(message) end it "informs message call" do expect(log).to receive(:info).with(message) logger.info(message) end it "warns message call" do expect(log).to receive(:warn).with(message) logger.warn(message) end it "errors message call" do expect(log).to receive(:error).with(message) logger.error(message) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
finite_machine-0.9.2 | spec/unit/logger_spec.rb |
finite_machine-0.9.1 | spec/unit/logger_spec.rb |
finite_machine-0.9.0 | spec/unit/logger_spec.rb |