Sha256: 34ec37da5d89899a77948872f730fa8f9b3c25a8207eab8adb39f007424c8032

Contents?: true

Size: 401 Bytes

Versions: 5

Compression:

Stored size: 401 Bytes

Contents

require 'spec_helper'

module MessageDriver
  describe Logging do
    class TestLogger
      include Logging
    end
    subject { TestLogger.new }

    describe "#logger" do
      let(:logger) { double(Logger) }
      it "returns the broker logger" do
        allow(MessageDriver::Broker).to receive(:logger).and_return(logger)
        expect(subject.logger).to be logger
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
message-driver-0.2.2 spec/units/message_driver/logging_spec.rb
message-driver-0.2.1 spec/units/message_driver/logging_spec.rb
message-driver-0.2.0 spec/units/message_driver/logging_spec.rb
message-driver-0.2.0.rc2 spec/units/message_driver/logging_spec.rb
message-driver-0.2.0.rc1 spec/units/message_driver/logging_spec.rb