diff options
author | Konstantin Haase <konstantin.haase@gmail.com> | 2013-08-25 02:58:09 -0700 |
---|---|---|
committer | Konstantin Haase <konstantin.haase@gmail.com> | 2013-08-25 02:58:09 -0700 |
commit | 210167f02486ea05e55181d88b2309850879539f (patch) | |
tree | df7892676dc8d74db174355277b24f832772ebbd | |
parent | bbae0ce30ddeb9f8a2a208d08e479ee5a85a1a02 (diff) | |
parent | e13c95461a1a0142384c41e51390108eaa42faae (diff) | |
download | rack-210167f02486ea05e55181d88b2309850879539f.tar.gz |
Merge pull request #597 from vipulnsward/change_equality_check
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 |