Sha256: 33a4253e6e53e508f44bdff61e5984d9be6531871094e97031e157bd78f587b0
Contents?: true
Size: 672 Bytes
Versions: 1
Compression:
Stored size: 672 Bytes
Contents
require 'inline_template_loader' describe 'InlineTemplateLoader' do describe '#load' do shared_examples_for 'load templates correctly from this file' do it { should == {foo: "Here is template named foo.\n\n", bar: "Here is template named bar.\n"} } end context 'with filepath' do subject { InlineTemplateLoader.load(__FILE__) } it_behaves_like 'load templates correctly from this file' end context 'without filepath' do subject { InlineTemplateLoader.load } it_behaves_like 'load templates correctly from this file' end end end __END__ @@ foo Here is template named foo. @@ bar Here is template named bar.
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
inline_template_loader-0.2.0 | spec/lib/inline_template_loader_spec.rb |