This project is archived and is in readonly mode.

Changeset [8ffc2e3b8de38c485fa24820208b40920dad7ae3] by Erik Ostrom

September 28th, 2009 @ 07:31 PM

Ported the new ActionView::TestCase from 2-3-stable to master [#3260
state:resolved]

The test case now mimicks the template environment more closely, so it's
possible to use render, load helper dependencies.

This also fixes assert_select, and similar assertions. Because view tests
and helpers generally don't render full templates assert_select looks
first in rendered and then in output_buffer to find the rendered output.

Additional master'-only changes: Made the Action Pack Rakefile run the<br/> ActionView::TestCase tests, and made ActionView::Rendering#_render_text<br/> always return a string.

Signed-off-by: Joshua Peek josh@joshpeek.com
http://github.com/rails/rails/commit/8ffc2e3b8de38c485fa24820208b40...

Committed by Erik Ostrom

  • A actionpack/test/fixtures/test/_from_helper.erb
  • M actionpack/Rakefile
  • M actionpack/lib/action_controller/testing/test_case.rb
  • M actionpack/lib/action_view/render/rendering.rb
  • M actionpack/lib/action_view/test_case.rb
  • M actionpack/test/template/active_record_helper_test.rb
  • M actionpack/test/template/benchmark_helper_test.rb
  • M actionpack/test/view/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>