Hi,
I’m using this assertion in a functional test:
assert_redirected_to facturas_path(assigns(:factura))
and I’m getting this error:
- Failure:
test_actualizar_plazos_factura(FacturasControllerTest)
[/test/functional/facturas_controller_test.rb:329]:
Expected response to be a redirect to
http://test.host/facturas.%23<facturaemitida:0x535cdfc> but was a
redirect t
o http://test.host/facturas/731476621.
In the controller I’m using this redirection:
redirect_to factura_url(@factura)
And in the routes file I have this:
map.resources :facturas
map.resources :facturas_emitidas, :controller => ‘facturas’
map.resources :facturas_proforma, :controller => ‘facturas’
map.resources :facturas_recibidas, :controller => ‘facturas’
Any idea?