Sha256: 08ae7d575b1c61dac0ec8d7a58496bb6e7dbb298d6270b660d2619ad766c6375
Contents?: true
Size: 951 Bytes
Versions: 12
Compression:
Stored size: 951 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 ).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
12 entries across 12 versions & 1 rubygems