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.

There was a problem

You must be a member of this account.

This project is archived and is in readonly mode.

Support assert_template in view tests

#4903

assert_template can be useful in view tests to specify which partials get rendered under different conditions.

It currently almost "just works" - just need to add this line:

@request = @controller.request

Patch (with test(s)) forthcoming .

Reported by David Chelimsky · June 19th, 2010 @ 04:16 AM

State: resolved
Milestone: none
Assigned to: José Valim José Valim
Importance: none

Activity

  1. David Chelimsky
  2. Repository
    Repository
    • State changed from new to resolved

    (from [86002a0dfe45c972a2498e33a6a2a882804603bd]) Support render_template in view tests. Useful for specifying which partials are rendered under different conditions.

    [#4903 Support assert_template in view tests state:resolved]

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

    June 19th, 2010 @ 11:32 PM