diff options
Diffstat (limited to 'actionpack/test')
-rw-r--r-- | actionpack/test/controller/assert_select_test.rb | 11 |
1 files changed, 2 insertions, 9 deletions
diff --git a/actionpack/test/controller/assert_select_test.rb b/actionpack/test/controller/assert_select_test.rb index 054cbba40b..42d6bb4432 100644 --- a/actionpack/test/controller/assert_select_test.rb +++ b/actionpack/test/controller/assert_select_test.rb @@ -288,18 +288,11 @@ class AssertSelectTest < ActionController::TestCase </rss> EOF assert_select "channel item description" do - # Test element regardless of wrapper. + assert_select_encoded do assert_select "p", :count=>2, :text=>/Test/ end - # Test through encoded wrapper. - assert_select_encoded do - assert_select "encoded p", :count=>2, :text=>/Test/ - end - # Use :root instead (recommended) - assert_select_encoded do - assert_select ":root p", :count=>2, :text=>/Test/ - end + # Test individually. assert_select "description" do |elements| assert_select_encoded elements[0] do |