Sha256: 47a3265f79f1f18c1507e19c8caa372841dfd20c9be899b2700724bdebf24b0e
Contents?: true
Size: 708 Bytes
Versions: 3
Compression:
Stored size: 708 Bytes
Contents
require 'spec_helper' require './lib/contentful/importer/publish_assets' module Contentful module Importer describe PublishAssets do before do setting_file = 'spec/fixtures/settings/settings.yml' @args = ["--configuration=#{setting_file}"] end it 'publish an assets' do vcr('publish_asset') do expect_any_instance_of(ParallelImporter).to receive(:publish_status).exactly(4).times expect_any_instance_of(ParallelImporter).to receive(:create_log_file).with('success_published_assets') command = PublishAssets.parse(@args + ['publish-assets', '--threads=1']) command.run end end end end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
contentful-importer-0.2.2 | spec/lib/publish_assets_spec.rb |
contentful-importer-0.2.1 | spec/lib/publish_assets_spec.rb |
contentful-importer-0.2.0 | spec/lib/publish_assets_spec.rb |