From 8d6c92ceccdd5ea845af678fe87854c4ae6e253f Mon Sep 17 00:00:00 2001 From: Timm Date: Wed, 24 Jul 2013 16:03:14 +0200 Subject: Fixed nested assert_select bug. Trying to create a full document for a nested call that already had a document. --- actionpack/lib/action_dispatch/testing/assertions/selector.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'actionpack/lib') diff --git a/actionpack/lib/action_dispatch/testing/assertions/selector.rb b/actionpack/lib/action_dispatch/testing/assertions/selector.rb index 6151491238..c91b5d5887 100644 --- a/actionpack/lib/action_dispatch/testing/assertions/selector.rb +++ b/actionpack/lib/action_dispatch/testing/assertions/selector.rb @@ -375,7 +375,7 @@ module ActionDispatch root_or_selector elsif @selected # nested call - wrap in document - Loofah.document('').tap { |d| d.add_child @selected } + Loofah.fragment('').tap { |d| d.add_child @selected } else @page end -- cgit v1.2.3