Sha256: a100c9d0a7e659e105f91534f991cce491d38db7d71792c7642ba58f1a72ba45
Contents?: true
Size: 325 Bytes
Versions: 2
Compression:
Stored size: 325 Bytes
Contents
require 'tempfile' Given /the element to split by "(.*)" and XML/ do |element, xml| tmp = Tempfile.new(element) tmp.write xml tmp.flush @object = XmlSplit.new(tmp.path, element) end Then /calling :(.*) must give (.*)/ do |method_id, raw_nodes| nodes = eval raw_nodes @object.send(method_id).should == nodes end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
xml_split-0.0.2 | features/step_definitions/xml_split_steps.rb |
xml_split-0.0.1 | features/step_definitions/xml_split_steps.rb |