Sha256: d3e61a0f411b53cf2d2ab4c0e7159acff64f81f59c1853dd11fd89c08a0a9e35
Contents?: true
Size: 688 Bytes
Versions: 3
Compression:
Stored size: 688 Bytes
Contents
Feature: mapping a document with boolean elements to an object So that I don't have to spend all my time typing in repetitive XPaths As an API consumer I want to map boolean fields to an object @boolean Scenario: I have a simple mapping Given I have a bar with open, busy and dodgy And I have the XML: """ <bar> <open>true</open> <busy>1</busy> <dodgy>0</dodgy> </bar> """ When I map the bar node to a bar object with: """ map.boolean :open map.boolean :busy map.boolean :dodgy """ Then the bar should be open And the bar should be busy And the bar should not be dodgy
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
dozuki-mapper-0.1.2 | features/boolean_mapping.feature |
dozuki-mapper-0.1.1 | features/boolean_mapping.feature |
dozuki-mapper-0.1.0 | features/boolean_mapping.feature |