Sha256: 850ef8ac0deb502b36040b5f8d3058444ad14bdd5cc208c35ed8d7a9758ba717
Contents?: true
Size: 798 Bytes
Versions: 4
Compression:
Stored size: 798 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 /<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
4 entries across 4 versions & 1 rubygems