aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/test/controller
diff options
context:
space:
mode:
authorJeremy Kemper <jeremy@bitsweat.net>2006-11-15 12:45:52 +0000
committerJeremy Kemper <jeremy@bitsweat.net>2006-11-15 12:45:52 +0000
commitc9e0002d36429a382ab4f96059a3b6eb51605d88 (patch)
tree50745d3993e57f09f22aac8470fcdfb1013b33dd /actionpack/test/controller
parent079d684a37a1d5e7c61661bdf6221ded90c06159 (diff)
downloadrails-c9e0002d36429a382ab4f96059a3b6eb51605d88.tar.gz
rails-c9e0002d36429a382ab4f96059a3b6eb51605d88.tar.bz2
rails-c9e0002d36429a382ab4f96059a3b6eb51605d88.zip
assert_select_rjs :remove
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r--actionpack/test/controller/assert_select_test.rb21
1 files changed, 21 insertions, 0 deletions
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|