Sha256: ace6c7c41978d0ddf1d0afc6d07415aef67ca95e7fcd72b13a056c258d661bd9
Contents?: true
Size: 551 Bytes
Versions: 3
Compression:
Stored size: 551 Bytes
Contents
require File.dirname(__FILE__) + '/spec_helper' describe RTurk::XmlUtilities do before(:all) do class XMLTest include RTurk::XmlUtilities def xml <<-XML <foo> <bar> <baz> <fuck>content!!!</fuck> </baz> </bar> </foo> XML end def parse xml_to_hash(Nokogiri::XML(xml)) end end end it "should parse a answer" do XMLTest.new.parse.should eql({'foo' => { 'bar' => {'baz' => {'fuck' => 'content!!!'}}}}) end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rturk-2.0.2 | spec/xml_parse_spec.rb |
rturk-2.0.1 | spec/xml_parse_spec.rb |
rturk-2.0.0 | spec/xml_parse_spec.rb |