From 271baf235d6e197a6ecd25945c34df0385137764 Mon Sep 17 00:00:00 2001 From: Jon Wood Date: Wed, 6 May 2009 16:23:20 +0100 Subject: Add :redirect to the testable RJS statements [#2612 state:resolved] Example : assert_select_rjs :redirect, root_path Signed-off-by: Pratik Naik --- actionpack/test/controller/assert_select_test.rb | 7 +++++++ 1 file changed, 7 insertions(+) (limited to 'actionpack/test/controller/assert_select_test.rb') diff --git a/actionpack/test/controller/assert_select_test.rb b/actionpack/test/controller/assert_select_test.rb index ad17d1288b..2e77d2f8ad 100644 --- a/actionpack/test/controller/assert_select_test.rb +++ b/actionpack/test/controller/assert_select_test.rb @@ -257,6 +257,13 @@ class AssertSelectTest < ActionController::TestCase end assert_raise(Assertion) {assert_select_rjs :insert, :top, "test2"} end + + def test_assert_select_rjs_for_redirect_to + render_rjs do |page| + page.redirect_to '/' + end + assert_select_rjs :redirect, '/' + end def test_elect_with_xml_namespace_attributes render_html %Q{} -- cgit v1.2.3