Sha256: 0d1e4125ee86083621994c3079e5d5f27320ab3e0738ed2cccb4a7a9d9622e4b

Contents?: true

Size: 731 Bytes

Versions: 8

Compression:

Stored size: 731 Bytes

Contents

require File.expand_path("../spec_helper", File.dirname(__FILE__))

describe Sprinkle do

  it 'should automatically extend Object to support package, policy and deployment DSL keywords' do
    %w( package policy deployment ).each do |keyword|
      Object.should respond_to(keyword.to_sym)
    end
  end

  it 'should default to production mode' do
    Sprinkle::OPTIONS[:testing].should be_false
  end

  it 'should automatically create a logger object on Kernel' do
    Object.should respond_to(:logger)
    logger.should_not be_nil
    logger.class.should == ActiveSupport::BufferedLogger
  end

  it 'should create a logger of level INFO' do
    logger.level.should == ActiveSupport::BufferedLogger::Severity::INFO
  end

end

Version data entries

8 entries across 8 versions & 1 rubygems

Version Path
sprinkle-0.5.0 spec/sprinkle/sprinkle_spec.rb
sprinkle-0.5.0.rc1 spec/sprinkle/sprinkle_spec.rb
sprinkle-0.4.2 spec/sprinkle/sprinkle_spec.rb
sprinkle-0.4.1 spec/sprinkle/sprinkle_spec.rb
sprinkle-0.4.0 spec/sprinkle/sprinkle_spec.rb
sprinkle-0.3.6 spec/sprinkle/sprinkle_spec.rb
sprinkle-0.3.5 spec/sprinkle/sprinkle_spec.rb
sprinkle-0.3.4 spec/sprinkle/sprinkle_spec.rb