diff options
-rw-r--r-- | actionpack/lib/action_dispatch/testing/assertions/selector.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |