Sha256: 5639bdb07c1364d4ef1be4f8259218ab1b8a2ac51ba9132b6bdfdcea5055bd28
Contents?: true
Size: 448 Bytes
Versions: 2
Compression:
Stored size: 448 Bytes
Contents
require 'spec_helper' describe Noid::Template do context 'with a valid template' do let(:template) { '.redek' } it 'initializes without raising' do expect { described_class.new(template) }.not_to raise_error end end context 'with a bogus template' do let(:template) { 'foobar' } it 'raises Noid::TemplateError' do expect { described_class.new(template) }.to raise_error(Noid::TemplateError) end end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
noid-0.8.0 | spec/lib/template_spec.rb |
noid-0.7.2 | spec/lib/template_spec.rb |