Sha256: 05b89cfdc0715d3ea309b59f0b554778041d0f9b8a7e7d04ceed0d6cf13027c5

Contents?: true

Size: 607 Bytes

Versions: 20

Compression:

Stored size: 607 Bytes

Contents

require 'spec_helper'

describe Berkshelf::API::Logging do
  describe "ClassMethods" do
    subject { described_class }

    describe "::init" do
      after { described_class.init(location: nil) }

      it "sets the Celluloid.logger to ::logger" do
        subject.init
        expect(Celluloid.logger).to eql(subject.logger)
      end
    end

    describe "::logger" do
      it "returns a Logger object" do
        expect(subject.logger).to be_a(Logger)
      end
    end
  end

  describe "#logger" do
    it "returns a Logger object" do
      expect(subject.logger).to be_a(Logger)
    end
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
berkshelf-api-3.0.0 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-2.2.0 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-2.1.3 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-2.1.2 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-2.1.1 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-2.1.0 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-2.0.0 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.4.0 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.3.1 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.3.0 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.2.2 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.2.1 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.2.0 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.2.0.rc2 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.2.0.rc1 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.1.1 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.1.0 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-1.0.0 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-0.2.0 spec/unit/berkshelf/api/logging_spec.rb
berkshelf-api-0.1.0 spec/unit/berkshelf/api/logging_spec.rb