Sha256: 65b5947e062751eda65911bbef09c0c5c28509817c3d855ba98abf0a828f3907

Contents?: true

Size: 327 Bytes

Versions: 50

Compression:

Stored size: 327 Bytes

Contents

require "spec_helper"

describe Ethon::Loggable do

  describe "#logger=" do

    let(:logger) do
      Logger.new($stdout).tap do |log|
        log.level = Logger::INFO
      end
    end

    before do
      Ethon.logger = logger
    end

    it "sets the logger" do
      expect(Ethon.logger).to eq(logger)
    end
  end
end

Version data entries

50 entries across 49 versions & 8 rubygems

Version Path
ethon-0.8.0 spec/ethon/loggable_spec.rb
ethon-0.7.4 spec/ethon/loggable_spec.rb
ethon-0.7.3 spec/ethon/loggable_spec.rb
ethon-0.7.2 spec/ethon/loggable_spec.rb
ethon-0.7.1 spec/ethon/loggable_spec.rb
ethon-0.7.0 spec/ethon/loggable_spec.rb
ethon-0.6.3 spec/ethon/loggable_spec.rb
ethon-0.6.2 spec/ethon/loggable_spec.rb
ethon-0.6.1 spec/ethon/loggable_spec.rb
ethon-0.6.0 spec/ethon/loggable_spec.rb