Sha256: 8178d8fe4778c0106b15da306ec1ae4e53da09a2637f538a56a2ed9ec9f09c10

Contents?: true

Size: 707 Bytes

Versions: 9

Compression:

Stored size: 707 Bytes

Contents

require 'spec_helper'

require_relative '../../../../../lib/locomotive/steam/adapters/filesystem/yaml_loader.rb'
require_relative '../../../../../lib/locomotive/steam/adapters/filesystem/yaml_loaders/site.rb'

describe Locomotive::Steam::Adapters::Filesystem::YAMLLoaders::Site do

  let(:site_path) { default_fixture_site_path }
  let(:loader)    { described_class.new(site_path) }

  describe '#load' do

    subject { loader.load(nil).first }

    it { expect(subject[:name]).to eq 'Sample site' }

    describe '#metafields_schema' do

      subject { loader.load(nil).first[:metafields_schema] }

      it 'loads the full schema' do
        expect(subject.count).to eq 4
      end

    end

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
locomotivecms_steam-1.5.0.beta1 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.4.1 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.4.0 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.4.0.rc2 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.4.0.rc1 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.4.0.pre.rc.1 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.3.0 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.3.0.rc2 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.3.0.rc1 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb