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

Version Path
rturk-2.12.1 spec/xml_parse_spec.rb
rturk-2.12.0 spec/xml_parse_spec.rb
rturk-2.11.3 spec/xml_parse_spec.rb
rturk-2.11.2 spec/xml_parse_spec.rb
rturk-2.11.1 spec/xml_parse_spec.rb
rturk-2.11.0 spec/xml_parse_spec.rb
rturk-2.10.3 spec/xml_parse_spec.rb
rturk-2.10.2 spec/xml_parse_spec.rb
rturk-2.10.1 spec/xml_parse_spec.rb
rturk-2.10.0 spec/xml_parse_spec.rb
rturk-2.9.0 spec/xml_parse_spec.rb
rturk-2.8.0 spec/xml_parse_spec.rb
rturk-2.7.0 spec/xml_parse_spec.rb
rturk-2.6.0 spec/xml_parse_spec.rb
rturk-2.5.2 spec/xml_parse_spec.rb
rturk-2.5.0 spec/xml_parse_spec.rb
rturk-2.4.1 spec/xml_parse_spec.rb
rturk-2.4.0 spec/xml_parse_spec.rb
rturk-2.3.6 spec/xml_parse_spec.rb
rturk-2.3.5 spec/xml_parse_spec.rb