1
0
Fork 0
mirror of https://github.com/teamcapybara/capybara.git synced 2022-11-09 12:08:07 -05:00
teamcapybara--capybara/lib/capybara/node/document.rb
Jonas Nicklas and Nicklas Ramhöj d0985f7f78 Add have_content matcher
2011-02-10 17:15:28 +01:00

25 lines
450 B
Ruby

module Capybara
module Node
##
#
# A {Capybara::Document} represents an HTML document. Any operation
# performed on it will be performed on the entire document.
#
# @see Capybara::Node
#
class Document < Base
def inspect
%(#<Capybara::Document>)
end
##
#
# @return [String] The text of the document
#
def text
find('.').text
end
end
end
end