spec/slogger/common_logger_spec.rb in slogger-0.0.10 vs spec/slogger/common_logger_spec.rb in slogger-0.0.11

- old
+ new

@@ -72,9 +72,14 @@ end it "should raise ArgumentError if try to change severity attribute to a invalid one" do lambda { subject.severity = :junk }.should raise_error end + + it "should still log after severity is set to warn" do + subject.severity = :warn + expect { subject.debug("Hello Logs!") }.not_to raise_error + end end describe "logging" do describe "when is in WARN severity" do subject { Slogger::CommonLogger.new "test_app", :warn, :local0 }