diff options
author | miloops <miloops@gmail.com> | 2008-08-07 13:07:53 -0300 |
---|---|---|
committer | Jeremy Kemper <jeremy@bitsweat.net> | 2008-08-29 17:52:26 -0700 |
commit | 11eb29f60ab79caf22f7ca715500e32d9a1b03a2 (patch) | |
tree | 336a2bc66ca6916237d3df51fcd5cce976431c7e /actionpack/test/controller | |
parent | 6450d6ca76603bc5d1b1a6cdcb77e33e35f53d83 (diff) | |
download | rails-11eb29f60ab79caf22f7ca715500e32d9a1b03a2.tar.gz rails-11eb29f60ab79caf22f7ca715500e32d9a1b03a2.tar.bz2 rails-11eb29f60ab79caf22f7ca715500e32d9a1b03a2.zip |
Make assert_select_rjs code more readable, make use of unused constants and use more simple Regexps.
[#540 state:resolved]
Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
Diffstat (limited to 'actionpack/test/controller')
-rw-r--r-- | actionpack/test/controller/assert_select_test.rb | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/actionpack/test/controller/assert_select_test.rb b/actionpack/test/controller/assert_select_test.rb index cce8f8dc21..08cbcbf302 100644 --- a/actionpack/test/controller/assert_select_test.rb +++ b/actionpack/test/controller/assert_select_test.rb @@ -599,6 +599,11 @@ class AssertSelectTest < Test::Unit::TestCase end end + def test_assert_select_rjs_raise_errors + assert_raises(ArgumentError) { assert_select_rjs(:destroy) } + assert_raises(ArgumentError) { assert_select_rjs(:insert, :left) } + end + # Simple selection from a single result. def test_nested_assert_select_rjs_with_single_result render_rjs do |page| |