Sha256: 29ac7e0db92d4bc1a2b28947eadaefb86ee9b4b79d420993634f62d37ae8346b
Contents?: true
Size: 770 Bytes
Versions: 1
Compression:
Stored size: 770 Bytes
Contents
require 'spec_helper' describe Hydra::Derivatives::Logger do context "with log levels" do let(:levels) { %w[unknown fatal error warn info debug] } it "responds successfully" do levels.each do |level| expect(described_class.respond_to?(level)).to be_truthy end end it "accepts messages" do expect(described_class.warn("message")).to be_truthy end end it "delegates respond_to_missing" do allow(ActiveFedora::Base.logger).to receive(:respond_to_missing?).with(:weird, false).and_return(true) expect(described_class.respond_to_missing?(:weird)).to be_truthy end context "with garbage" do it "raises an error" do expect { described_class.garbage }.to raise_error(NoMethodError) end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
hydra-derivatives-3.5.0 | spec/units/logger_spec.rb |