Sha256: 55f1f7492532e47bb28beed5ef10fb75e9ce7d707aa4095a7b76a5a331438b19
Contents?: true
Size: 962 Bytes
Versions: 6
Compression:
Stored size: 962 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 # ActiveSupport::BufferedLogger was deprecated and replaced by ActiveSupport::Logger in Rails 4. # Use ActiveSupport::Logger if available active_support_logger = defined?(ActiveSupport::Logger) ? ActiveSupport::Logger : ActiveSupport::BufferedLogger logger.class.should == active_support_logger end it 'should create a logger of level INFO' do logger.level.should == Logger::Severity::INFO end end
Version data entries
6 entries across 6 versions & 1 rubygems