diff options
author | Vipul A M <vipulnsward@gmail.com> | 2013-08-25 13:35:30 +0530 |
---|---|---|
committer | Vipul A M <vipulnsward@gmail.com> | 2013-08-25 13:35:30 +0530 |
commit | e13c95461a1a0142384c41e51390108eaa42faae (patch) | |
tree | d2b3503a8f6712fcf0bb6c2c1659fb61d1886022 | |
parent | 838865f86ea538015f6c49e2c4935bab56533bdb (diff) | |
download | rack-e13c95461a1a0142384c41e51390108eaa42faae.tar.gz |
Change equality check to stop warnings
-rw-r--r-- | test/spec_commonlogger.rb | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/test/spec_commonlogger.rb b/test/spec_commonlogger.rb index 9c96638c..4d1c2cca 100644 --- a/test/spec_commonlogger.rb +++ b/test/spec_commonlogger.rb @@ -65,11 +65,11 @@ describe Rack::CommonLogger do end md = /- - - \[([^\]]+)\] "(\w+) \/ " (\d{3}) \d+ ([\d\.]+)/.match(log.string) - md.should.not == nil + md.should.not.equal nil time, method, status, duration = *md.captures - time.should == Time.at(0).strftime("%d/%b/%Y %H:%M:%S %z") - method.should == "GET" - status.should == "200" + time.should.equal Time.at(0).strftime("%d/%b/%Y %H:%M:%S %z") + method.should.equal "GET" + status.should.equal "200" (0..1).should.include?(duration.to_f) end |