aboutsummaryrefslogtreecommitdiffstats
path: root/actionpack/lib/action_dispatch/testing/assertions
diff options
context:
space:
mode:
authorTimm <kaspth@gmail.com>2013-07-24 16:03:14 +0200
committerTimm <kaspth@gmail.com>2014-06-16 21:03:55 +0200
commit8d6c92ceccdd5ea845af678fe87854c4ae6e253f (patch)
treed8602f232d6b5311334887dd81bed61b41701e10 /actionpack/lib/action_dispatch/testing/assertions
parent1e4f1ab95e8059d899736d6e329f18c6d23b444e (diff)
downloadrails-8d6c92ceccdd5ea845af678fe87854c4ae6e253f.tar.gz
rails-8d6c92ceccdd5ea845af678fe87854c4ae6e253f.tar.bz2
rails-8d6c92ceccdd5ea845af678fe87854c4ae6e253f.zip
Fixed nested assert_select bug. Trying to create a full document for a nested call that already had a document.
Diffstat (limited to 'actionpack/lib/action_dispatch/testing/assertions')
-rw-r--r--actionpack/lib/action_dispatch/testing/assertions/selector.rb2
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