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

Version Path
hydra-derivatives-3.1.3 spec/units/logger_spec.rb
hydra-derivatives-3.1.2 spec/units/logger_spec.rb
hydra-derivatives-3.1.1 spec/units/logger_spec.rb
hydra-derivatives-1.2.1 spec/units/logger_spec.rb
hydra-derivatives-1.2.0 spec/units/logger_spec.rb
hydra-derivatives-3.1.0 spec/units/logger_spec.rb
hydra-derivatives-3.0.2 spec/units/logger_spec.rb
hydra-derivatives-3.0.1 spec/units/logger_spec.rb
hydra-derivatives-3.0.0 spec/units/logger_spec.rb
hydra-derivatives-2.0.0 spec/units/logger_spec.rb
hydra-derivatives-1.1.0 spec/units/logger_spec.rb
hydra-derivatives-1.0.0 spec/units/logger_spec.rb
hydra-derivatives-1.0.0.rc1 spec/units/logger_spec.rb
hydra-derivatives-1.0.0.beta1 spec/units/logger_spec.rb
hydra-derivatives-0.1.1 spec/units/logger_spec.rb