Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

integration_test#post returns 422 response

#3617

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

Reported by Sam Ruby · December 26th, 2009 @ 01:29 PM

State: resolved
Milestone: 3.0.2
Assigned to: Carl Lerche Carl Lerche
Importance: High

Activity

  1. Jeremy Kemper
    Jeremy Kemper
    • State changed from new to open
    • Assigned user set to Carl Lerche

    December 28th, 2009 @ 10:08 PM

  2. Carl Lerche
    Carl Lerche
    • State changed from open to resolved

    It turned out to be from a but in class_inheritable_accessor with regards to included hooks.

    December 30th, 2009 @ 12:32 AM

  3. Jeremy Kemper
    Jeremy Kemper
    • Milestone set to 3.0.2
    • Importance changed from to High

    October 15th, 2010 @ 11:01 PM