Sha256: 683d267edf3f2e9269107d6ca5693bf5ed94a255be239420408fd8dff686b9ec

Contents?: true

Size: 398 Bytes

Versions: 40

Compression:

Stored size: 398 Bytes

Contents

require 'spec_helper'

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

  before do
    @initial_logger = described_class.logger
    described_class.logger = logger1
  end

  after do
    described_class.logger = @initial_logger
  end

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

Version data entries

40 entries across 40 versions & 1 rubygems

Version Path
active-fedora-10.3.0 spec/unit/logger_spec.rb
active-fedora-9.7.3 spec/unit/logger_spec.rb
active-fedora-10.3.0.rc2 spec/unit/logger_spec.rb
active-fedora-11.0.0.rc7 spec/unit/logger_spec.rb
active-fedora-10.3.0.rc1 spec/unit/logger_spec.rb
active-fedora-11.0.0.rc6 spec/unit/logger_spec.rb
active-fedora-10.2.1 spec/unit/logger_spec.rb
active-fedora-11.0.0.rc5 spec/unit/logger_spec.rb
active-fedora-11.0.0.rc4 spec/unit/logger_spec.rb
active-fedora-10.2.0 spec/unit/logger_spec.rb
active-fedora-11.0.0.rc3 spec/unit/logger_spec.rb
active-fedora-11.0.0.rc2 spec/unit/logger_spec.rb
active-fedora-11.0.0.rc1 spec/unit/logger_spec.rb
active-fedora-10.1.0 spec/unit/logger_spec.rb
active-fedora-10.1.0.rc1 spec/unit/logger_spec.rb
active-fedora-9.7.2 spec/unit/logger_spec.rb
active-fedora-10.0.0 spec/unit/logger_spec.rb
active-fedora-10.0.0.beta4 spec/unit/logger_spec.rb
active-fedora-10.0.0.beta3 spec/unit/logger_spec.rb
active-fedora-10.0.0.beta2 spec/unit/logger_spec.rb