Sha256: 59ae3791ebf2be4a966629eb1fc3c2dde6a94120327f40ee316da5ec698966b6
Contents?: true
Size: 551 Bytes
Versions: 12
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
12 entries across 12 versions & 1 rubygems