Sha256: a13e4f57c7c1a544a469e8d89f8a63510c16434fd90c9fa28f72512d9dc49c30

Contents?: true

Size: 715 Bytes

Versions: 63

Compression:

Stored size: 715 Bytes

Contents

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

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

63 entries across 63 versions & 13 rubygems

Version Path
auser-sprinkle-0.1.5 spec/sprinkle/sprinkle_spec.rb
auser-sprinkle-0.1.6 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.1.0 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.1.1 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.1.2 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.1.4 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.1.5 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.1.6 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.1.7 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.1.8 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.1.9 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.2.0 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.2.1 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.2.2 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.2.3 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.2.4 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.2.5 spec/sprinkle/sprinkle_spec.rb
crafterm-sprinkle-0.2.6 spec/sprinkle/sprinkle_spec.rb
jemmyw-sprinkle-0.2.3 spec/sprinkle/sprinkle_spec.rb
jemmyw-sprinkle-0.2.4 spec/sprinkle/sprinkle_spec.rb