From c9e0002d36429a382ab4f96059a3b6eb51605d88 Mon Sep 17 00:00:00 2001 From: Jeremy Kemper Date: Wed, 15 Nov 2006 12:45:52 +0000 Subject: assert_select_rjs :remove git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de --- actionpack/test/controller/assert_select_test.rb | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) (limited to 'actionpack/test/controller') diff --git a/actionpack/test/controller/assert_select_test.rb b/actionpack/test/controller/assert_select_test.rb index 2c180dbc08..92da967acd 100644 --- a/actionpack/test/controller/assert_select_test.rb +++ b/actionpack/test/controller/assert_select_test.rb @@ -408,6 +408,27 @@ class AssertSelectTest < Test::Unit::TestCase assert_raises(AssertionFailedError) { assert_select_rjs :replace_html, "test1" } end + # Simple remove + def test_assert_select_rjs_for_remove + render_rjs do |page| + page.remove "test1" + end + + assert_select_rjs :remove, "test1" + end + + def test_assert_select_rjs_for_remove_ignores_block + render_rjs do |page| + page.remove "test1" + end + + assert_nothing_raised do + assert_select_rjs :remove, "test1" do + assert_select "p" + end + end + end + # Non-positioned insert. def test_assert_select_rjs_for_nonpositioned_insert render_rjs do |page| -- cgit v1.2.3