Skip to content

Loading…

Change equality check to stop warnings #597

Merged
merged 1 commit into from

2 participants

@vipulnsward

Change equality check to stop warnings

@rkh rkh merged commit 210167f into rack:master

1 check passed

Details default The Travis CI build passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Aug 25, 2013
  1. @vipulnsward
This page is out of date. Refresh to see the latest.
Showing with 4 additions and 4 deletions.
  1. +4 −4 test/spec_commonlogger.rb
View
8 test/spec_commonlogger.rb
@@ -65,11 +65,11 @@ def with_mock_time(t = 0)
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
Something went wrong with that request. Please try again.