This project is archived and is in readonly mode.
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
-
Jeremy Kemper December 28th, 2009 @ 10:08 PM
- State changed from new to open
- Assigned user set to Carl Lerche
-
Carl Lerche December 30th, 2009 @ 12:32 AM
- State changed from open to resolved
It turned out to be from a but in class_inheritable_accessor with regards to included hooks.
-
Jeremy Kemper October 15th, 2010 @ 11:01 PM
- Milestone set to 3.0.2
- Importance changed from to High
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>