require 'spec_helper' module RevealCK module Markdown describe SlideMarkdownTemplate do let :basic_slide_markdown do <<-eos # First Slide --- # Second Slide eos end it 'handles markdown ' do require 'tempfile' file = Tempfile.new(['test', '.md']) file.write(basic_slide_markdown) file.close template = Tilt.new(file.path) output = template.render output.should include '

First Slide

' output.should include "\n
" output.should include '

Second Slide

' end end end end