On 12/19/06, Zouplaz <user / domain.invalid> wrote: > 22) Failure: > test_destroy(VehiculesControllerTest) > [./test/functional/vehicules_controller_test.rb:39]: > Expected response to be a <:success>, but was <302> > ************************** vehicules_controller_test.rb > > def test_destroy > s = @johnfoo.vehicules.size > post :destroy, :id => @johnfoo.vehicules[0].id > assert_response :success > @johnfoo.reload > assert_equal s-1, @johnfoo.vehicules.size > end > > ************************** vehicules_controller.rb > > def destroy > @client = Vehicule.find(params[:id]).client > Vehicule.destroy(params[:id]) > render :partial => 'liste' > end HTTP 302 means Moved temporarily. have a look at your logs to what url are the tests posting (with or without autotest). Or how the autotest might interfere with it. Or why :success doesn't include 302. ..not that I know anything about autotest nor rails testing... ;-)