Sha256: 3b6404792dcd0eb8d335396625aeaee22168a9ae4eaf1a3307a8d1dcdc4d63a2
Contents?: true
Size: 723 Bytes
Versions: 4
Compression:
Stored size: 723 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.wrap }.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.wrap }.to raise_error(Shortcode::TemplateParserNotSupported) end end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
shortcode-0.0.4 | spec/tag_spec.rb |
shortcode-0.0.3 | spec/tag_spec.rb |
shortcode-0.0.2 | spec/tag_spec.rb |
shortcode-0.0.1 | spec/tag_spec.rb |