Sha256: 215057d9f8786dc8c7e2f1ca02087317ac8fa35ba1bd64a8a292689386e7eb5e

Contents?: true

Size: 548 Bytes

Versions: 3

Compression:

Stored size: 548 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

  context "with garbage" do
    it "raises an error" do
      expect { described_class.garbage }.to raise_error(NoMethodError)
    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
hydra-derivatives-3.4.2 spec/units/logger_spec.rb
hydra-derivatives-3.4.1 spec/units/logger_spec.rb
hydra-derivatives-3.4.0 spec/units/logger_spec.rb