redirect fails..

I am testing an ActiveResource model create method. The remote service
is sending back a redirect request with newly created record url, but
for some reason redirection fails and I get

1) Error:
ActiveResource::Redirection: Failed with 302 Moved temporarily =>

I tried debugging the issue and found that for some reasone there were
no rescue_handlers for the exception.. so the redirection does not
happen and the test fails. I am lost as to why.

   76 end
   78 def handler_for_rescue(exception)
   79 # We go from right to left because pairs are pushed onto
   80 # as rescue_from declarations are found.
=> 81 _, rescuer = Array(rescue_handlers).reverse.detect do |
klass_name, handler|