require 'spec_helper' ES1 = <Code

class Example
  def method
  end
end

EOF ES2 = <
class Example
  def method
  end
end
EOF module Reloadlive describe Render do it "renders code" do render = Render.new 'es1.md', ES1 render.formatted_data.should eq ES1HTML end it "renders YAML front matter" do render = Render.new 'es1.md', ES2 render.formatted_data.should eq ES1HTML end it "renders source code" do render = Render.new 'ruby.rb', ES3 render.formatted_data.chomp.should eq ES3HTML.chomp end it "renders source code not pygmentizable" do render = Render.new 'qwerty', 'qwerty source code' render.formatted_data.chomp.should eq '
qwerty source code
' end end end