This project is archived and is in readonly mode.

Changeset [cddd4746f9a2fba8215d53a0f9ac5241f128d07b] by Eloy Duran

September 25th, 2009 @ 02:51 PM

Rewrote ActionView::TestCase.

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.
http://github.com/rails/rails/commit/cddd4746f9a2fba8215d53a0f9ac52...

Committed by Eloy Duran

  • A actionpack/test/fixtures/test/_from_helper.erb
  • M actionpack/lib/action_controller/test_process.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>