summaryrefslogtreecommitdiff
path: root/spec/mixlib/log_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/mixlib/log_spec.rb')
-rw-r--r--spec/mixlib/log_spec.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/mixlib/log_spec.rb b/spec/mixlib/log_spec.rb
index 00307f2..1a4a33e 100644
--- a/spec/mixlib/log_spec.rb
+++ b/spec/mixlib/log_spec.rb
@@ -137,4 +137,11 @@ describe Mixlib::Log do
Logit.init
end
+ it "should have by default a base log level of warn" do
+ logger_mock = Struct.new(:formatter, :level).new
+ Logger.stub!(:new).and_return(logger_mock)
+ Logit.init
+ Logit.level.should eql(:warn)
+ end
+
end