Sha256: 793fbe0d1ded994315537afd41ebede855ad76e8188654fcb2a1fee97a886cd4
Contents?: true
Size: 727 Bytes
Versions: 4
Compression:
Stored size: 727 Bytes
Contents
require 'spec_helper' describe Shortcode::Tag do context "when the template file is missing" do let(:tag) { Shortcode::Tag.new('doesnt_exist') } it "raises a TemplateNotFound error when the file doesn't exists" do expect { tag.render }.to raise_error(Shortcode::TemplateNotFound) end end context "when an unsupported template parser is specified" do let(:tag) { Shortcode::Tag.new('quote') } before(:each) do Shortcode.setup do |config| config.template_parser = :something_crazy end end it "raises a TemplateNotFound error when the file doesn't exists" do expect { tag.render }.to raise_error(Shortcode::TemplateParserNotSupported) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shortcode-0.2.0 | spec/tag_spec.rb |
shortcode-0.1.2 | spec/tag_spec.rb |
shortcode-0.1.1 | spec/tag_spec.rb |
shortcode-0.1.0 | spec/tag_spec.rb |