Sha256: daed0691f732d00fad836aef07ffd53333d19b62566fabfe8c0695e5b6a409bd
Contents?: true
Size: 772 Bytes
Versions: 4
Compression:
Stored size: 772 Bytes
Contents
require 'spec_helper' require 'yaml' module Contentful describe Configuration do it 'initialize' do yaml_text = <<-EOF data_dir: path_to_data_dir wordpress_xml_path: path_to_xml_file.xml contentful_structure_dir: spec/fixtures/default_contentful_structure.json EOF yaml = YAML.load(yaml_text) configuration = Contentful::Configuration.new(yaml) expect(configuration.assets_dir).to eq 'path_to_data_dir/assets' expect(configuration.collections_dir).to eq 'path_to_data_dir/collections' expect(configuration.data_dir).to eq 'path_to_data_dir' expect(configuration.entries_dir).to eq 'path_to_data_dir/entries' expect(configuration.wordpress_xml).to eq 'path_to_xml_file.xml' end end end
Version data entries
4 entries across 4 versions & 1 rubygems