Sha256: fb79aaeae5c97773612599c802a85f5113248caaeaf6e1f2ed502b5a1da58269
Contents?: true
Size: 800 Bytes
Versions: 6
Compression:
Stored size: 800 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
6 entries across 6 versions & 1 rubygems