Make Webrat::Core::Session#redirect? work in the face of rational maths.

Such as when someone uses `ruby-units' and suddenly 302/100 becomes 151/50.
This commit is contained in:
Piers Cawley 2009-05-27 12:35:36 +01:00
parent fd431f2ce8
commit 58601c4653
1 changed files with 1 additions and 1 deletions

View File

@ -143,7 +143,7 @@ For example:
end
def redirect? #:nodoc:
response_code / 100 == 3
(response_code / 100).to_i == 3
end
def internal_redirect?