Sha256: cc6061eed040b4927949b0febd5fb89d32b10eb67983a82e877dbb060264c2be

Contents?: true

Size: 920 Bytes

Versions: 5

Compression:

Stored size: 920 Bytes

Contents

require 'spec_helper'
require './lib/contentful/importer/configuration'

module Contentful
  module Importer
    describe Configuration do

      include_context 'shared_configuration'

      it 'initialize' do
        expect(@config.data_dir).to eq 'spec/fixtures/import_files'
        expect(@config.collections_dir).to eq 'spec/fixtures/import_files/collections'
        expect(@config.assets_dir).to eq 'spec/fixtures/import_files/assets'
        expect(@config.entries_dir).to eq 'spec/fixtures/import_files/entries'
        expect(@config.log_files_dir).to eq 'spec/fixtures/import_files/logs'
        expect(@config.threads_dir).to eq 'spec/fixtures/import_files/threads'
        expect(@config.imported_entries).to be_empty
        expect(@config.published_entries).to be_empty
        expect(@config.published_assets).to be_empty
        expect(@config.space_id).to eq 'ip17s12q0ek4'
      end
    end
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
contentful-importer-0.2.2 spec/lib/configuration_spec.rb
contentful-importer-0.2.1 spec/lib/configuration_spec.rb
contentful-importer-0.2.0 spec/lib/configuration_spec.rb
contentful-importer-0.1.1 spec/lib/configuration_spec.rb
contentful-importer-0.1.0 spec/lib/configuration_spec.rb