Sha256: 3ffecf20e6bedbea7ae76f0103b98ad02050d01a5438417db502403a8db66d7d
Contents?: true
Size: 955 Bytes
Versions: 2
Compression:
Stored size: 955 Bytes
Contents
require 'model_helper' require 'puppet-herald/app/configuration' describe PuppetHerald::App::Configuration do after(:all) do PuppetHerald.environment = :test end describe '.setup_database_logger' do subject { PuppetHerald::App::Configuration.configure_app(dbmigrate: false, cron: false) } context 'in DEV environment' do before(:each) do PuppetHerald.environment = :development end it 'executes properlly' do expect(subject).to be_nil end it 'sets logger level to DEBUG' do expect(ActiveRecord::Base.logger.level).to eq(Logger::DEBUG) end end context 'in PROD environment' do before(:each) do PuppetHerald.environment = :production end it 'executes properlly' do expect(subject).to be_nil end it 'sets logger level to INFO' do expect(ActiveRecord::Base.logger.level).to eq(Logger::INFO) end end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
puppet-herald-0.8.1 | spec/integration/app/configuration_spec.rb |
puppet-herald-0.8.0 | spec/integration/app/configuration_spec.rb |