Class: Katalyst::Kpop::Matchers::CapybaraParser Private
- Inherits:
-
Base
- Object
- RSpec::Rails::Matchers::BaseMatcher
- Base
- Katalyst::Kpop::Matchers::CapybaraParser
- Defined in:
- lib/katalyst/kpop/matchers/capybara_parser.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from Base
Instance Method Summary collapse
- #match(_, actual) ⇒ Object private
Methods inherited from Base
Instance Method Details
#match(_, actual) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
8 9 10 11 |
# File 'lib/katalyst/kpop/matchers/capybara_parser.rb', line 8 def match(_, actual) @html = Nokogiri::HTML5.parse(actual.body) Capybara::Node::Simple.new(@html) end |