Sha256: db1491326396852d32acd73581e4834b83297fc88d7c5715e6ebdeee569e7b4c

Contents?: true

Size: 555 Bytes

Versions: 2

Compression:

Stored size: 555 Bytes

Contents

require 'rack/logs/config'

describe 'Rack::Logs::Config' do
  let(:config) { Rack::Logs::Config.new }

  describe '#log_dir' do
    it 'defaults to *.log' do
      expect(config.log_dir).to eq './log'
    end
    it 'is configurable' do
      config.log_dir = './tmp'
      expect(config.log_dir).to eq './tmp'
    end
  end

  describe '#pattern' do
    it 'defaults to *.log' do
      expect(config.pattern).to eq '*.log'
    end
    it 'is configurable' do
      config.pattern = '*.doge'
      expect(config.pattern).to eq '*.doge'
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
rack-logs-0.0.2 spec/unit/rack/logs/config_spec.rb
rack-logs-0.0.1 spec/unit/rack/logs/config_spec.rb