Sha256: 076f946b8f13c5b8519574bd81983a6127a28083ed929a7a98dd4604ac8a990f
Contents?: true
Size: 614 Bytes
Versions: 15
Compression:
Stored size: 614 Bytes
Contents
require 'spec_helper' describe Hydra::Derivatives::Logger do context "with log levels" do let(:levels) { ["unknown", "fatal", "error", "warn", "info", "debug"] } it "should respond successfully" do levels.each do |level| expect(Hydra::Derivatives::Logger.respond_to?(level)).to be_truthy end end it "should accept messages" do expect(Hydra::Derivatives::Logger.warn("message")).to be_truthy end end context "with garbage" do it "should raise an error" do expect{Hydra::Derivatives::Logger.garbage}.to raise_error(NoMethodError) end end end
Version data entries
15 entries across 15 versions & 1 rubygems