Sha256: 1549ae13104c85b6e1bd2ca56cde0d806e2d8e4fd4e6d29d71fb4af66720e0e3
Contents?: true
Size: 838 Bytes
Versions: 1
Compression:
Stored size: 838 Bytes
Contents
Feature: Exists accessor In order to easily determine whether a node exists in a document As a traverser I want to check whether a node exists Scenario: the node exists When I parse the XML: """ <root> <name>St. George's Arms</name> <average_price>20.32</average_price> <number_of_beers>2</number_of_beers> </root> """ And I call "exists?('/root/number_of_beers')" on the document Then the result should be true Scenario: the node doesn't exist When I parse the XML: """ <root> <name>St. George's Arms</name> <average_price>20.32</average_price> <number_of_beers>2</number_of_beers> </root> """ And I call "exists?('/root/food')" on the document Then the result should be false
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
dozuki-0.0.1 | features/exists_accessor.feature |