Sha256: 0fddde0946261a47082a14b14e3c9c271bf80f528567f039da711086327f7427

Contents?: true

Size: 588 Bytes

Versions: 28

Compression:

Stored size: 588 Bytes

Contents

require File.dirname(__FILE__) + '/spec_helper'
require 'daemon_kit/initializer'

describe DaemonKit::Configuration do
  before(:each) do
    @configuration = DaemonKit::Configuration.new
  end

  it "should know our environment" do
    @configuration.environment.should_not be_nil
  end

  it "should have a default log path" do
    @configuration.log_path.should_not be_nil
  end

  it "should have a default log level" do
    @configuration.log_level.should_not be_nil
  end

  it "should set a default umask" do
    File.umask.should_not be(0)
    File.umask.should be(18)
  end

end

Version data entries

28 entries across 28 versions & 7 rubygems

Version Path
daemon-kit-0.1.7.12 spec/initializer_spec.rb
daemon-kit-0.1.7.11 spec/initializer_spec.rb
apphunkd-0.10.1 vendor/daemon_kit/spec/initializer_spec.rb
apphunkd-0.10.0 vendor/daemon_kit/spec/initializer_spec.rb
apphunkd-0.9.2 vendor/daemon_kit/spec/initializer_spec.rb
apphunkd-0.9.1 vendor/daemon-kit/spec/initializer_spec.rb
apphunkd-0.9.0 vendor/daemon-kit/spec/initializer_spec.rb
daemon-kit-0.1.7.10 spec/initializer_spec.rb