This project is archived and is in readonly mode.

Changeset [e02db06ece7aeecec7c37f5b0e3de7d65c8684e6] by David Chelimsky

May 26th, 2010 @ 02:59 PM

In AV::TC, move protect_against_forgery? from the test_case to the
_helper module included in the view.

  • ensures that protect_against_forgery? is present when a helper included in a partial that is rendered by the template under test calls it (which happens in FormTagHelper#extra_tags_for_form, for example).

[#4700 state:resolved]

Signed-off-by: José Valim jose.valim@gmail.com
http://github.com/rails/rails/commit/e02db06ece7aeecec7c37f5b0e3de7...

Committed by David Chelimsky

  • M actionpack/lib/action_view/test_case.rb
  • M actionpack/test/template/test_case_test.rb

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>