Sha256: 066f793a433d42412ed2a60c98fcfe7f4473c1371e1c2468f3799d0b05654544

Contents?: true

Size: 589 Bytes

Versions: 1

Compression:

Stored size: 589 Bytes

Contents

require 'spec_helper'

describe Kissable::Configuration do
  subject(:configuration) { described_class.new }

  it { should respond_to(:logger) }
  it { should respond_to(:domain) }

  describe "#logger" do
    it "defaults to Logger" do
      expect(configuration.logger.class).to eq(Logger)
    end
  end

  describe "#domain" do
    it "defaults to nil" do
      expect(configuration.domain).to eq(nil)
    end
  end

  context "when Logger is written to" do
    it "doesn't have an error" do
      expect(Kissable.configuration.logger.info("test")).to_not raise_error
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
kissable-1.0.0a1 spec/kissable/configuration_spec.rb