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