1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib/action_view
Erik Ostrom 8ffc2e3b8d 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
ActionView::TestCase tests, and made ActionView::Rendering#_render_text
always return a string.

Signed-off-by: Joshua Peek <josh@joshpeek.com>
2009-09-28 13:31:30 -05:00
..
erb use autoload instead of explicit requires for ActionView 2008-11-23 13:42:07 -06:00
helpers Introduce :almost keyword for distance_of_time_in_words. Make 1.75 days - 2 days return '2 days'. 2009-09-28 14:37:31 +13:00
locale Introduce :almost keyword for distance_of_time_in_words. Make 1.75 days - 2 days return '2 days'. 2009-09-28 14:37:31 +13:00
render Ported the new ActionView::TestCase from 2-3-stable to master [#3260 2009-09-28 13:31:30 -05:00
template Restore split between require-time and runtime load path mungery. Simplifies vendor requires. 2009-09-24 18:38:18 -07:00
base.rb Got tests to pass with some more changes. 2009-08-15 12:32:02 -07:00
context.rb replace _render_*_from_controller with render_* as they are intended to be public 2009-08-06 19:43:28 -03:00
helpers.rb First effort at new Ajax helpers 2009-07-20 16:13:21 -07:00
paths.rb Remove some old cruft 2009-08-27 05:00:57 -05:00
test_case.rb Ported the new ActionView::TestCase from 2-3-stable to master [#3260 2009-09-28 13:31:30 -05:00