Sha256: 0f5ada4d9e5ddc925f2b94e1ba9507f1ba0626b18ae57743be55a8f8a22e0d88
Contents?: true
Size: 1008 Bytes
Versions: 6
Compression:
Stored size: 1008 Bytes
Contents
require File.dirname(__FILE__) + '/../spec_helper' describe "Eye::Dsl::Config" do describe "deprecated options" do it "logger" do conf = <<-E Eye.logger = "/tmp/1.log" Eye.logger_level = Logger::DEBUG Eye.application("bla") do end E Eye::Dsl.parse(conf).should == {:applications => {"bla" => {:name => "bla"}}, :config => {:logger => "/tmp/1.log", :logger_level => Logger::DEBUG}} end end it "logger" do conf = <<-E Eye.config do logger "/tmp/1.log" end E Eye::Dsl.parse(conf).should == {:applications => {}, :config => {:logger => "/tmp/1.log"}} end it "should merge sections" do conf = <<-E Eye.config do logger "/tmp/1.log" logger_level 2 end Eye.config do logger "/tmp/2.log" end E Eye::Dsl.parse(conf).should == {:applications => {}, :config => {:logger => "/tmp/2.log", :logger_level => 2}} end end
Version data entries
6 entries across 6 versions & 1 rubygems