Sha256: d93d057c183f0553e433d8200a5c2280ed8d212f647d97b696bbc22788b0c383
Contents?: true
Size: 484 Bytes
Versions: 1
Compression:
Stored size: 484 Bytes
Contents
require File.join(File.dirname(__FILE__), '..', 'lib', 'tadpole') describe Tadpole, '::Template' do before do Tadpole.template_paths.clear Tadpole.register_template_path File.dirname(__FILE__) + '/examples' end it "should yield to a method with extra values" do Template('yield/1').new.run.should == '[FOOBARBAR]' end it "should yield to external template with extra values" do Template('yield/2').new(:foo => 'FOO').run.should == 'BARBAR' end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
tadpole-0.1.7 | spec/yield_spec.rb |