diff --git a/lib/webrat/core/session.rb b/lib/webrat/core/session.rb index 13f3f90..42614b4 100644 --- a/lib/webrat/core/session.rb +++ b/lib/webrat/core/session.rb @@ -143,7 +143,7 @@ For example: end def redirect? #:nodoc: - response_code / 100 == 3 + (response_code / 100).to_i == 3 end def internal_redirect?