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