Sha256: 76a8d28ebd12c3527b1ec2f6652bd74373d8a5312d64e352f4a307e47d14e75e

Contents?: true

Size: 469 Bytes

Versions: 33

Compression:

Stored size: 469 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::NullLogger do
  before { ActiveFedora::Base.logger = described_class.new }
  describe "::logger" do
    let(:logger) { ActiveFedora::Base.logger }
    it "when calling the logger" do
      expect(logger.warn("warning!")).to be_nil
    end
  end

  describe "#logger" do
    let(:logger) { ActiveFedora::Base.new.logger }
    it "when calling the logger" do
      expect(logger.warn("warning!")).to be_nil
    end
  end
end

Version data entries

33 entries across 33 versions & 1 rubygems

Version Path
active-fedora-12.2.4 spec/unit/core/logger_spec.rb
active-fedora-12.2.3 spec/unit/core/logger_spec.rb
active-fedora-11.5.6 spec/unit/core/logger_spec.rb
active-fedora-12.2.2 spec/unit/core/logger_spec.rb
active-fedora-11.2.1 spec/unit/core/logger_spec.rb
active-fedora-12.2.1 spec/unit/core/logger_spec.rb
active-fedora-12.0.3 spec/unit/core/logger_spec.rb
active-fedora-11.5.5 spec/unit/core/logger_spec.rb
active-fedora-13.1.2 spec/unit/core/logger_spec.rb
active-fedora-13.1.1 spec/unit/core/logger_spec.rb
active-fedora-13.1.0 spec/unit/core/logger_spec.rb
active-fedora-13.0.0 spec/unit/core/logger_spec.rb
active-fedora-12.1.1 spec/unit/core/logger_spec.rb
active-fedora-12.1.0 spec/unit/core/logger_spec.rb
active-fedora-11.5.4 spec/unit/core/logger_spec.rb
active-fedora-11.5.3 spec/unit/core/logger_spec.rb
active-fedora-12.0.2 spec/unit/core/logger_spec.rb
active-fedora-12.0.1 spec/unit/core/logger_spec.rb
active-fedora-11.5.2 spec/unit/core/logger_spec.rb
active-fedora-12.0.0 spec/unit/core/logger_spec.rb