Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

fix log level setting

  • Loading branch information...
commit 1c18b2b2badc4de2f5c13b55759aae3399551dc5 1 parent e0bb871
Christopher Brown authored
Showing with 4 additions and 4 deletions.
  1. +1 −1  features/steps/log.rb
  2. +3 −3 spec/mixlib/log_spec.rb
View
2  features/steps/log.rb
@@ -17,7 +17,7 @@
#
Given /^a base log level of '(.+)'$/ do |level|
- Logit.level(level.to_sym)
+ Logit.level = level.to_sym
end
When /^the message '(.+)' is sent at the '(.+)' level$/ do |message, level|
View
6 spec/mixlib/log_spec.rb
@@ -43,17 +43,17 @@
:fatal => Logger::FATAL
}
levels.each do |symbol, constant|
- Logit.level(symbol)
+ Logit.level = symbol
Logit.logger.level.should == constant
end
end
it "should raise an ArgumentError if you try and set the level to something strange" do
- lambda { Logit.level(:the_roots) }.should raise_error(ArgumentError)
+ lambda { Logit.level = :the_roots }.should raise_error(ArgumentError)
end
it "should pass other method calls directly to logger" do
- Logit.level(:debug)
+ Logit.level = :debug
Logit.should be_debug
lambda { Logit.debug("Gimme some sugar!") }.should_not raise_error
end
Please sign in to comment.
Something went wrong with that request. Please try again.