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.

Changeset [8ffc2e3b8de38c485fa24820208b40920dad7ae3] by Erik Ostrom

Revision 8ffc2e3b8de38c485fa24820208b40920dad7ae3, committed 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...

8 changed files

  • 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