Sha256: 9da4e64b81249aac9b73ea55231bfbc9da68989b2267729c4a4976c4d65e802a

Contents?: true

Size: 649 Bytes

Versions: 13

Compression:

Stored size: 649 Bytes

Contents

require 'spec_helper'

describe Locomotive::Steam::Liquid::FileSystem do

  let(:section_finder) { instance_double('SectionFinder') }
  let(:snippet_finder) { instance_double('SnippetFinder') }
  let(:instance) { described_class.new(section_finder: section_finder, snippet_finder: snippet_finder) }

  describe '#read_template_file' do

    let(:template_path) { nil }

    subject { instance.read_template_file(template_path) }

    context 'unknown type' do

      let(:template_path) { 'unknown_template' }

      it { expect { subject }.to raise_error('Liquid error: This liquid context does not allow unknown_template.') }

    end

  end

end

Version data entries

13 entries across 13 versions & 1 rubygems

Version Path
locomotivecms_steam-1.8.0.alpha2 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.8.0.alpha1 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.7.1 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.7.0 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.6.1 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.6.0 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.6.0.rc1 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.6.0.beta1 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.5.3 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.5.2 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.5.1 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.5.0 spec/unit/liquid/file_system_spec.rb
locomotivecms_steam-1.5.0.rc1 spec/unit/liquid/file_system_spec.rb