Sha256: 755aa77df9402485faccd605e4bbab88d24573cd3d19130a601a257505c241b6
Contents?: true
Size: 816 Bytes
Versions: 3
Compression:
Stored size: 816 Bytes
Contents
require 'spec_helper' require './lib/contentful/importer/test_credentials' module Contentful module Importer describe TestCredentials do before do setting_file = 'spec/fixtures/settings/settings.yml' @args = ["--configuration=#{setting_file}", 'test-credentials'] end it 'when valid' do vcr('valid_credentials') do expect_any_instance_of(Logger).to receive(:info).with('Contentful Management API credentials: OK') TestCredentials.parse(@args).run end end it 'when invalid' do vcr('invalid_credentials') do expect_any_instance_of(Logger).to receive(:info).with('Contentful Management API credentials: INVALID (check README)') TestCredentials.parse(@args).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/test_credentials_spec.rb |
contentful-importer-0.2.1 | spec/lib/test_credentials_spec.rb |
contentful-importer-0.2.0 | spec/lib/test_credentials_spec.rb |