Sha256: 47818763f0a0ccfa43fec5233ff62921e9ff2d6ae0800fb23b0ce96772d1c4a5
Contents?: true
Size: 472 Bytes
Versions: 10
Compression:
Stored size: 472 Bytes
Contents
# frozen_string_literal: true describe DarwinCore::XmlReader do describe ".from_xml" do let(:file) { File.expand_path("../files/meta.xml", __dir__) } subject { DarwinCore::XmlReader.from_xml(File.read(file)) } it "reads xml to hash" do expect(subject).to be_kind_of Hash expect(subject[:archive].keys.sort).to eq %i[core extension] expect(subject[:archive][:core].keys.sort). to eq %i[attributes field files id] end end end
Version data entries
10 entries across 10 versions & 1 rubygems