Module: RSpec::HTML
- Defined in:
- lib/rspec/html.rb,
lib/rspec/html/version.rb
Overview
Module extension for RSpec::SharedContext
Constant Summary collapse
- VERSION =
'0.3.5'
Instance Method Summary collapse
Instance Method Details
#document ⇒ Object
11 12 13 14 15 |
# File 'lib/rspec/html.rb', line 11 def document RSpecHTML::Element.new(Nokogiri::HTML.parse(response.body), :document) rescue NameError raise RSpecHTML::NoResponseError, 'No `response` object found. Make a request first.' end |