diff options
author | Frederick Cheung <frederick.cheung@gmail.com> | 2008-12-25 11:11:00 +0000 |
---|---|---|
committer | Frederick Cheung <frederick.cheung@gmail.com> | 2008-12-26 18:25:32 +0000 |
commit | dce0da77e7ef602f7420f43c0d1aba5a99a00bdb (patch) | |
tree | d917bf9cd17da1575ea6ad3c97c8311ddc3ad2a6 /actionpack/test/controller | |
parent | d7b6e48c70076a7760e22c381e48834ecddfa6e3 (diff) | |
download | rails-dce0da77e7ef602f7420f43c0d1aba5a99a00bdb.tar.gz rails-dce0da77e7ef602f7420f43c0d1aba5a99a00bdb.tar.bz2 rails-dce0da77e7ef602f7420f43c0d1aba5a99a00bdb.zip |
Fix assert_select_rjs not checking id for inserts [#540 state:resolved]
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/assert_select_test.rb | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/actionpack/test/controller/assert_select_test.rb b/actionpack/test/controller/assert_select_test.rb index ed8c4427c9..99c57c0c91 100644 --- a/actionpack/test/controller/assert_select_test.rb +++ b/actionpack/test/controller/assert_select_test.rb @@ -248,6 +248,14 @@ class AssertSelectTest < ActionController::TestCase end end + def test_assert_select_rjs_for_positioned_insert_should_fail_when_mixing_arguments + render_rjs do |page| + page.insert_html :top, "test1", "<div id=\"1\">foo</div>" + page.insert_html :bottom, "test2", "<div id=\"2\">foo</div>" + end + assert_raises(Assertion) {assert_select_rjs :insert, :top, "test2"} + end + # # Test css_select. # |