summaryrefslogtreecommitdiff
path: root/spec/ruby/library/logger/logger/warn_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/ruby/library/logger/logger/warn_spec.rb')
-rw-r--r--spec/ruby/library/logger/logger/warn_spec.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/spec/ruby/library/logger/logger/warn_spec.rb b/spec/ruby/library/logger/logger/warn_spec.rb
index 6617b2b41a..0bca34824a 100644
--- a/spec/ruby/library/logger/logger/warn_spec.rb
+++ b/spec/ruby/library/logger/logger/warn_spec.rb
@@ -16,12 +16,12 @@ describe "Logger#warn?" do
it "returns true if severity level allows printing warn messages" do
@logger.level = Logger::WARN
- @logger.warn?.should == true
+ @logger.should.warn?
end
it "returns false if severity level does not allow printing warn messages" do
@logger.level = Logger::FATAL
- @logger.warn?.should == false
+ @logger.should_not.warn?
end
end