Sha256: e552c4465ba533dc20beca5b166306ff102c40386381c7ffa0aa33657b22fdbb
Contents?: true
Size: 460 Bytes
Versions: 1
Compression:
Stored size: 460 Bytes
Contents
# -*- coding: utf-8 -*- require 'minitest/autorun' require 'minitest/autorun' require 'simplecov' SimpleCov.start require 'sixarm_ruby_rexml' describe REXML::Attributes do describe "#to_a_hash" do it "converts attributes to a hash of name value pairs" do doc=REXML::Document.new('<foo a="b" c="d" e="f"/>') expect={"a"=>"b","c"=>"d","e"=>"f"} doc.elements['foo'].attributes.to_a_hash.must_equal expect end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
sixarm_ruby_rexml-2.1.0 | test/sixarm_ruby_rexml_test/attributes_test.rb |