Sha256: e51ab03035915abd2670af53fbd1c0921cc942bd276f8c710943f469ba9782bd

Contents?: true

Size: 592 Bytes

Versions: 1

Compression:

Stored size: 592 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.1 spec/kissable/configuration_spec.rb