Sha256: 3585e264b455e27a684374bfdb257c73dfcc2b279eb92e53c0e678271a134c5d

Contents?: true

Size: 711 Bytes

Versions: 2

Compression:

Stored size: 711 Bytes

Contents

require './lib/configuration'

shared_context 'shared_configuration' do
  before do
    yaml_text = <<-EOF
          data_dir: spec/fixtures/import_files

          access_token: <ACCESS_TOKEN>
          organization_id: <ORGANIZATION_ID>
          space_id: ip17s12q0ek4
          default_locale: 'en-US'

          mapping_dir: spec/fixtures/settings/mapping.json
          contentful_structure_dir: spec/fixtures/settings/contentful_structure.json

          content_model_json: spec/fixtures/settings/contentful_model.json
          converted_model_dir: spec/fixtures/settings/contentful_structure_test.json
    EOF
    yaml = YAML.load(yaml_text)
    @config = Contentful::Configuration.new(yaml)
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
contentful-importer-0.0.2 spec/support/shared_configuration.rb
contentful-importer-0.0.1 spec/support/shared_configuration.rb