Sha256: 1ac5d62600a1bb0f1e82e8fd7136a0c7290eb8efbd9f906906522854c3292fe8

Contents?: true

Size: 513 Bytes

Versions: 9

Compression:

Stored size: 513 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) }

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

  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
locomotivecms_steam-1.0.0 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.rc10 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.rc9 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.rc8 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.rc6 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.rc4 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.rc3 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.rc2 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.rc1 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb