Sha256: 9704357a73e005311e8a25c4715fad3f6b4698d18e6f0b7786e3fd3172e448a2
Contents?: true
Size: 652 Bytes
Versions: 3
Compression:
Stored size: 652 Bytes
Contents
require 'spec_helper' require './lib/contentful/importer/import_entries' module Contentful module Importer describe ImportEntries do before do setting_file = 'spec/fixtures/settings/settings.yml' @args = ["--configuration=#{setting_file}"] end it 'import an entires to Contentful with two Threads' do vcr('import_entries') do allow(FileUtils).to receive(:rm_r) command = ImportEntries.parse(@args + ['import-entries', '--threads=2']) import = command.run expect(import).to be_a Array expect(import.count).to eq 2 end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
contentful-importer-0.2.2 | spec/lib/import_entries_spec.rb |
contentful-importer-0.2.1 | spec/lib/import_entries_spec.rb |
contentful-importer-0.2.0 | spec/lib/import_entries_spec.rb |