Sha256: 6653df270930939aafbba5ed6b6952ba6ab0e0e1ad9595fae2e7e58b43008556

Contents?: true

Size: 553 Bytes

Versions: 2

Compression:

Stored size: 553 Bytes

Contents

require_relative '../spec_helper'

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

  describe '.new' do
    it 'initializes' do
      expect(meta).to be_kind_of DarwinCore::Generator::MetaXml
    end
  end

  describe '#create' do
    it 'creates metadata file' do
      meta.create
      meta = File.read(File.join(path, 'meta.xml'))
      expect(meta).to match %r|<location>core.csv</location>|  
    end
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
dwc-archive-0.9.11 spec/lib/generator_meta_xml_spec.rb
dwc-archive-0.9.10 spec/lib/generator_meta_xml_spec.rb