Sha256: 8d998d74e471ad41f06b2e2a606736bd9eb57cb1a5cff6e8c4a0130b3a2c35aa

Contents?: true

Size: 516 Bytes

Versions: 7

Compression:

Stored size: 516 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 website' }

  end

end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
locomotivecms_steam-1.0.0.pre.beta.3 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.pre.beta.2 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.pre.beta.1 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.3 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.2 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.pre.alpha.1 spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb
locomotivecms_steam-1.0.0.pre.alpha spec/unit/adapters/filesystem/yaml_loaders/site_spec.rb