Sha256: 6b8a94fd6bddb5b646f227022c7f6c7618f0a28ff570e776ae71d3a0c65c4a26
Contents?: true
Size: 525 Bytes
Versions: 20
Compression:
Stored size: 525 Bytes
Contents
require '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
20 entries across 20 versions & 1 rubygems