Sha256: ae0216fbf4605d01e6ddc634db702462eb462f6b71dcbd5379047d8decc620f8

Contents?: true

Size: 697 Bytes

Versions: 3

Compression:

Stored size: 697 Bytes

Contents

require 'spec_helper'

module RevealCK
  module Templates
    describe Processor do

      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
        /<p>\s+This is basic (Slim|Haml)\s+<\/p>/
      end

      it 'can process a slim template' do
        processor = Processor.open slim_file
        processor.output.should match pretty_printed_basic
      end

      it 'can process a haml template' do
        processor = Processor.open haml_file
        processor.output.should match pretty_printed_basic
      end

    end
  end
end

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
reveal-ck-0.2.0 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-0.1.8 spec/lib/reveal-ck/templates/processor_spec.rb
reveal-ck-0.1.7 spec/lib/reveal-ck/templates/processor_spec.rb