Redirect fails

hello,
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:
    test_should_create_a_sales_quotation(SalesQuotationsControllerTest):
    ActiveResource::Redirection: Failed with 302 Moved temporarily =>
    http://vmsaps02.bramasol.com:8000/sap/rest/sales_quotations/0020000234.xml

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.

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

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs