From 9f73f9f38cd572cdb7bee42b0ef250c8bbd91cc7 Mon Sep 17 00:00:00 2001 From: Timm Date: Fri, 2 Aug 2013 16:05:55 +0200 Subject: Fixed: assert_select_encoded finds the right content. No longer uses a wrapper. Updated tests to reflect this. --- actionpack/test/controller/assert_select_test.rb | 11 ++--------- 1 file changed, 2 insertions(+), 9 deletions(-) (limited to 'actionpack/test/controller') 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 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 -- cgit v1.2.3