Sha256: 12994b62dd068f35a15726f70da1b293c87edc9611d2e09ae379a138e1649abb
Contents?: true
Size: 1.05 KB
Versions: 38
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe "template parsers" do let(:simple_quote) { load_fixture :simple_quote } let(:simple_quote_output) { load_fixture :simple_quote_output, :html } context "erb" do it "can render a template" do expect(Shortcode.process(simple_quote).gsub("\n",'')).to eq(simple_quote_output) end end context "haml" do before(:each) do Shortcode.setup do |config| config.template_parser = :haml config.template_paths = [File.join(File.dirname(__FILE__), "support/templates/haml")] end end it "can render a template" do expect(Shortcode.process(simple_quote).gsub("\n",'')).to eq(simple_quote_output) end end context "slim" do before(:each) do Shortcode.setup do |config| config.template_parser = :slim config.template_paths = [File.join(File.dirname(__FILE__), "support/templates/slim")] end end it "can render a template" do expect(Shortcode.process(simple_quote).gsub("\n",'')).to eq(simple_quote_output) end end end
Version data entries
38 entries across 38 versions & 1 rubygems