Sha256: 870f2315f24766bdc82b245d6ed85590c341388d1fb546fd0e29e903de18a832

Contents?: true

Size: 525 Bytes

Versions: 10

Compression:

Stored size: 525 Bytes

Contents

# frozen_string_literal: true

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

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

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

    it "should create eml xml" do
      expect(content).to match(/Test Classification/)
    end
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

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