This project is archived and is in readonly mode.

#3617 ✓resolved
Sam Ruby

integration_test#post returns 422 response

Reported by Sam Ruby | December 26th, 2009 @ 01:29 PM | in 3.0.2

Reproduction instructions:

ruby script/generate scaffold cart
rake db:migrate
rake db:test:prepare

ruby script/generate integration_test cart_stories
sed -i -e 's/assert true/post "carts"; assert_response :found/' \
  test/integration/cart_stories_test.rb
ruby -I test test/integration/cart_stories_test.rb

Test passes in versions of Rails prior to http://github.com/rails/rails/commit/38aeb1528c376f7a058beea6db0a32...

Current results:

Loaded suite test/integration/cart_stories_test
Started
F

  1) Failure:
test_the_truth(CartStoriesTest) [test/integration/cart_stories_test.rb:8]:
Expected response to be a <:found>, but was <422>

Finished in 0.402899354 seconds.

1 tests, 1 assertions, 1 failures, 0 errors, 0 pendings, 0 omissions, 0 notifications
0% passed

Comments and changes to this ticket

Create your profile

Help contribute to this project by taking a few moments to create your personal profile. Create your profile »

<h2 style="font-size: 14px">Tickets have moved to Github</h2>

The new ticket tracker is available at <a href="https://github.com/rails/rails/issues">https://github.com/rails/rails/issues</a>

Pages