Sha256: 74ccd49130d7888ba5c4ad46b9864a03248d905f26bbf67dabf5d29c83117730

Contents?: true

Size: 411 Bytes

Versions: 22

Compression:

Stored size: 411 Bytes

Contents

require 'spec_helper'

describe ActiveFedora::Base do
  let(:logger1) { double(debug?: false) }

  before do
    @initial_logger = ActiveFedora::Base.logger
    ActiveFedora::Base.logger = logger1
  end

  after do
    ActiveFedora::Base.logger = @initial_logger
  end

  it "Allows loggers to be set" do
    expect(logger1).to receive(:warn).with("Hey")
    ActiveFedora::Base.new.logger.warn "Hey"

  end
end

Version data entries

22 entries across 22 versions & 1 rubygems

Version Path
active-fedora-9.0.8 spec/unit/logger_spec.rb
active-fedora-9.5.0 spec/unit/logger_spec.rb
active-fedora-9.4.3 spec/unit/logger_spec.rb
active-fedora-9.4.2 spec/unit/logger_spec.rb
active-fedora-9.4.1 spec/unit/logger_spec.rb
active-fedora-9.4.0 spec/unit/logger_spec.rb
active-fedora-9.3.0 spec/unit/logger_spec.rb
active-fedora-9.2.1 spec/unit/logger_spec.rb
active-fedora-9.2.0 spec/unit/logger_spec.rb
active-fedora-9.2.0.rc2 spec/unit/logger_spec.rb
active-fedora-9.2.0.rc1 spec/unit/logger_spec.rb
active-fedora-9.1.2 spec/unit/logger_spec.rb
active-fedora-9.1.1 spec/unit/logger_spec.rb
active-fedora-9.1.0 spec/unit/logger_spec.rb
active-fedora-9.1.0.rc1 spec/unit/logger_spec.rb
active-fedora-9.0.6 spec/unit/logger_spec.rb
active-fedora-9.0.5 spec/unit/logger_spec.rb
active-fedora-9.0.4 spec/unit/logger_spec.rb
active-fedora-9.0.3 spec/unit/logger_spec.rb
active-fedora-9.0.2 spec/unit/logger_spec.rb