spec/httpi/httpi_spec.rb in httpi-0.7.9 vs spec/httpi/httpi_spec.rb in httpi-0.8.0
- old
+ new
@@ -289,21 +289,22 @@
HTTPI.logger.should == MyLogger
end
end
describe ".log_level" do
- it "should default to :debug" do
- HTTPI.log_level.should == :debug
+ it "should default to :warn" do
+ HTTPI.log_level.should == :warn
end
it "should set the log level to use" do
HTTPI.log_level = :info
HTTPI.log_level.should == :info
end
end
describe ".log" do
it "should log given messages" do
+ HTTPI.log_level = :debug
HTTPI.logger.expects(:debug).with("Log this")
HTTPI.log "Log", "this"
end
end
end