From: Zouplaz Date: 2006-12-19T22:05:07+09:00 Subject: Re: ZenTest autotest problems le 18/12/2006 06:50, Eric Hodel nous a dit: > > Can you include a failure? > Yes, the one below - Is there something wrong ? I really don't see the cause. Just for info, the test_helper.rb is unmodified. 22) Failure: test_destroy(VehiculesControllerTest) [./test/functional/vehicules_controller_test.rb:39]: Expected response to be a <:success>, but was <302> The overall autotest gives : 81 tests, 309 assertions, 13 failures, 12 errors ************************** 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 ************************** rake:functionals (in /usr/local/www/ror_mica) /usr/bin/ruby -Ilib:test "/usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader.rb" "test/functional/clients_controller_test.rb" "test/functional/telephones_controller_test.rb" "test/functional/vehicules_controller_test.rb" "test/functional/alerts_controller_test.rb" "test/functional/forfaits_controller_test.rb" "test/functional/mouvements_controller_test.rb" "test/functional/statistiques_controller_test.rb" "test/functional/factures_controller_test.rb" Loaded suite /usr/lib/ruby/gems/1.8/gems/rake-0.7.1/lib/rake/rake_test_loader Started ........................................... . Finished in 8.999147 seconds. 44 tests, 185 assertions, 0 failures, 0 errors