summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorThom May <thom@chef.io>2016-08-12 18:19:11 +0100
committerThom May <thom@chef.io>2016-08-12 18:19:11 +0100
commit3f74501b75e8f0c7745ea5fe170ebc9f43e89e96 (patch)
treedf340e77cab67734a8be543a6f182b97bd03909b /spec
parent44b302fa7f3e503d68eb4f458846f679900aab2f (diff)
downloadmixlib-log-3f74501b75e8f0c7745ea5fe170ebc9f43e89e96.tar.gz
Allow applications to query if they've got loggers
This is required to avoid the problems in #17 Signed-off-by: Thom May <thom@may.lt>
Diffstat (limited to 'spec')
-rw-r--r--spec/mixlib/log_spec.rb5
1 files changed, 5 insertions, 0 deletions
diff --git a/spec/mixlib/log_spec.rb b/spec/mixlib/log_spec.rb
index 1eceff1..d780b0d 100644
--- a/spec/mixlib/log_spec.rb
+++ b/spec/mixlib/log_spec.rb
@@ -79,6 +79,11 @@ describe Mixlib::Log do
expect(second_logdev.string).to match(/SECOND/)
end
+ it "knows that it's been configured" do
+ Logit.init
+ expect(Logit.configured?).to be true
+ end
+
it "should set the log level using the binding form, with :debug, :info, :warn, :error, or :fatal" do
levels = {
:debug => Logger::DEBUG,