Sha256: afe940f55f2a7ba1f0d605224fb464f548395825b34f99c029e9179a1458106a

Contents?: true

Size: 422 Bytes

Versions: 11

Compression:

Stored size: 422 Bytes

Contents

require 'roqua/support'

describe Roqua do
  describe '#logger' do
    it 'has a default' do
      expect(Roqua.logger).to be_an_instance_of(Roqua::LogWrapper)
    end
  end

  describe '#logger=' do
    let(:logger) { double }

    it 'wraps a given logger' do
      Roqua.logger = logger
      expect(Roqua.logger).to be_an_instance_of(Roqua::LogWrapper)
      expect(Roqua.logger.logger).to eq logger
    end
  end
end

Version data entries

11 entries across 11 versions & 1 rubygems

Version Path
roqua-support-0.4.4 spec/roqua/support_spec.rb
roqua-support-0.4.3 spec/roqua/support_spec.rb
roqua-support-0.4.2 spec/roqua/support_spec.rb
roqua-support-0.4.1 spec/roqua/support_spec.rb
roqua-support-0.4.0 spec/roqua/support_spec.rb
roqua-support-0.3.5 spec/roqua/support_spec.rb
roqua-support-0.3.4 spec/roqua/support_spec.rb
roqua-support-0.3.3 spec/roqua/support_spec.rb
roqua-support-0.3.2 spec/roqua/support_spec.rb
roqua-support-0.3.1 spec/roqua/support_spec.rb
roqua-support-0.3.0 spec/roqua/support_spec.rb