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:
parent
fd431f2ce8
commit
58601c4653
|
@ -143,7 +143,7 @@ For example:
|
||||||
end
|
end
|
||||||
|
|
||||||
def redirect? #:nodoc:
|
def redirect? #:nodoc:
|
||||||
response_code / 100 == 3
|
(response_code / 100).to_i == 3
|
||||||
end
|
end
|
||||||
|
|
||||||
def internal_redirect?
|
def internal_redirect?
|
||||||
|
|
Loading…
Reference in New Issue