Sha256: 6ccde264c8ec14559942c06a055f5121884ee7d360d0990854a758512f1dbac7

Contents?: true

Size: 396 Bytes

Versions: 33

Compression:

Stored size: 396 Bytes

Contents

require 'spec_helper'

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

  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

33 entries across 33 versions & 1 rubygems

Version Path
active-fedora-8.7.0 spec/unit/logger_spec.rb
active-fedora-8.6.0 spec/unit/logger_spec.rb
active-fedora-8.5.0 spec/unit/logger_spec.rb
active-fedora-8.4.2 spec/unit/logger_spec.rb
active-fedora-8.4.1 spec/unit/logger_spec.rb
active-fedora-7.3.1 spec/unit/logger_spec.rb
active-fedora-7.3.0 spec/unit/logger_spec.rb
active-fedora-8.4.0 spec/unit/logger_spec.rb
active-fedora-8.3.0 spec/unit/logger_spec.rb
active-fedora-8.2.2 spec/unit/logger_spec.rb
active-fedora-8.2.1 spec/unit/logger_spec.rb
active-fedora-8.2.0 spec/unit/logger_spec.rb
active-fedora-7.2.0 spec/unit/logger_spec.rb
active-fedora-8.1.0 spec/unit/logger_spec.rb
active-fedora-8.0.1 spec/unit/logger_spec.rb
active-fedora-9.0.0.rc3 spec/unit/logger_spec.rb
active-fedora-8.0.0 spec/unit/logger_spec.rb
active-fedora-8.0.0.rc3 spec/unit/logger_spec.rb
active-fedora-9.0.0.rc2 spec/unit/logger_spec.rb
active-fedora-9.0.0.rc1 spec/unit/logger_spec.rb