Sha256: 8ac566b9cfd720bb659573bb0dad445e29b6f0e7557068ae599ed2d82bd752f4

Contents?: true

Size: 799 Bytes

Versions: 15

Compression:

Stored size: 799 Bytes

Contents

require 'spec_helper'

module RevealCK
  module Templates
    describe Processor do
      let :config do
        Config.new
      end

      let :slim_file do
        spec_data 'templates', 'processor', 'basic.slim'
      end

      let :haml_file do
        spec_data 'templates', 'processor', 'basic.haml'
      end

      let :pretty_printed_basic do
        %r{<p>\s+This is basic (Slim|Haml)\s+</p>}
      end

      it 'can process a slim template' do
        processor = Processor.open file: slim_file, config: config
        expect(processor.output).to match pretty_printed_basic
      end

      it 'can process a haml template' do
        processor = Processor.open file: haml_file, config: config
        expect(processor.output).to match pretty_printed_basic
      end
    end
  end
end

Version data entries

15 entries across 15 versions & 1 rubygems

Version Path
reveal-ck-4.0.0 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.9.2 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.9.1 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.9.0 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.8.1 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.8.0 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.7.0 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.6.0 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.5.1 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.5.0 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.4.0 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.3.1 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.3.0 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.2.0 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-3.1.0 spec/lib/reveal-ck/templates/processor_spec.rb