Sha256: dc4ca535efa485105a44f65f2a5931e6ac75656683bbd18c2f5916fe469b81ee

Contents?: true

Size: 542 Bytes

Versions: 10

Compression:

Stored size: 542 Bytes

Contents

# frozen_string_literal: true

describe DarwinCore::Generator::MetaXml do
  subject { DarwinCore::Generator::MetaXml.new(data, path) }
  let(:data) { META_DATA }
  let(:path) { DarwinCore::DEFAULT_TMP_DIR }

  describe ".new" do
    it { is_expected.to be_kind_of DarwinCore::Generator::MetaXml }
  end

  describe "#create" do
    let(:content) do
      subject.create
      File.read(File.join(path, "meta.xml"))
    end

    it "creates metadata file" do
      expect(content).to match(%r{<location>core.csv</location>})
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
dwc-archive-1.1.9 spec/lib/generator_meta_xml_spec.rb
dwc-archive-1.1.7 spec/lib/generator_meta_xml_spec.rb
dwc-archive-1.1.6 spec/lib/generator_meta_xml_spec.rb
dwc-archive-1.1.5 spec/lib/generator_meta_xml_spec.rb
dwc-archive-1.1.4 spec/lib/generator_meta_xml_spec.rb
dwc-archive-1.1.3 spec/lib/generator_meta_xml_spec.rb
dwc-archive-1.1.2 spec/lib/generator_meta_xml_spec.rb
dwc-archive-1.1.1 spec/lib/generator_meta_xml_spec.rb
dwc-archive-1.1.0 spec/lib/generator_meta_xml_spec.rb
dwc-archive-1.0.1 spec/lib/generator_meta_xml_spec.rb