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.

extract ActionView::TestCase::Behavior so that other test frameworks can use it without having to subclass ActionView::TestCase

#4678

Same deal as 4474, but with ActionView::TestCase

First cut: http://github.com/dchelimsky/rails/commit/3d128a17240dcd87785f8141f...

Reported by David Chelimsky · May 24th, 2010 @ 07:00 AM

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

Activity

  1. David Chelimsky
    David Chelimsky
    • Assigned user changed from Yehuda Katz (wycats) to José Valim

    May 24th, 2010 @ 07:00 AM

  2. Repository
    Repository
    • State changed from new to resolved

    (from [8e583b69e8b3017e85440c97b325ca7ae0c32dfb]) Move AV::TC to AV::TC::Behavior [#4678 extract ActionView::TestCase::Behavior so that other test frameworks can use ... state:resolved]

    • enables alternative testing frameworks to include AV::TC::Behavior instead of subclassing AV::TC
    • also added tests and code for:
      • test view delegates :notice to request.flash
        • useful since generators generate views that use notice
      • test case doesn't try to include modules that are actually classes

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

    May 24th, 2010 @ 09:59 PM