Sha256: 34b3722fd5a3f852584e03b54dc587839e5207ae267a03fd11a4b7fb227c1641
Contents?: true
Size: 908 Bytes
Versions: 4
Compression:
Stored size: 908 Bytes
Contents
require 'spec_helper' module Ddr::IngestTools::DdrRdrMigrator RSpec.describe FilePathAdder do subject do described_class.new(files: files, manifest: manifest) end let(:files) { File.join('spec', 'fixtures', 'ddr_rdr_migrator', 'source', 'changeme-664', 'changeme-664-export-file') } let(:manifest_file) { File.join('spec', 'fixtures', 'ddr_rdr_migrator', 'manifests', 'sorted_manifest.csv') } let(:manifest) { CSV.read(manifest_file, headers: true) } let(:expected_manifest_file) { File.join('spec', 'fixtures', 'ddr_rdr_migrator', 'manifests', 'sorted_manifest_with_file_paths.csv') } let(:expected_manifest) { CSV.read(expected_manifest_file, headers: true) } it 'adds the appropriate file paths to the manifest' do expect(subject.call).to eq(expected_manifest) end end end
Version data entries
4 entries across 4 versions & 1 rubygems