Sha256: 8b5c5ba258951879d9ec932cdcd555da95bb3375275408d5969e1f31b6ba4270

Contents?: true

Size: 548 Bytes

Versions: 7

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

7 entries across 7 versions & 1 rubygems

Version Path
hydra-derivatives-3.3.2 spec/units/logger_spec.rb
hydra-derivatives-3.3.1 spec/units/logger_spec.rb
hydra-derivatives-3.3.0 spec/units/logger_spec.rb
hydra-derivatives-3.2.2 spec/units/logger_spec.rb
hydra-derivatives-3.2.1 spec/units/logger_spec.rb
hydra-derivatives-3.2.0 spec/units/logger_spec.rb
hydra-derivatives-3.1.4 spec/units/logger_spec.rb