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.

Add :redirect to assert_select_rjs

#2612

This patch adds the ability to test for redirects from RJS, by using:

assert_select_rjs :redirect, root_path

Reported by Jon Wood · May 6th, 2009 @ 04:26 PM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Repository
    Repository
    • State changed from new to resolved

    (from [271baf235d6e197a6ecd25945c34df0385137764]) Add :redirect to the testable RJS statements [#2612 Add :redirect to assert_select_rjs state:resolved]

    Example :
    assert_select_rjs :redirect, root_path

    Signed-off-by: Pratik Naik pratiknaik@gmail.com
    http://github.com/rails/rails/commit/271baf235d6e197a6ecd25945c34df...

    August 9th, 2009 @ 05:27 AM