Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
branch: master
Fetching contributors…

Cannot retrieve contributors at this time

17 lines (13 sloc) 0.484 kb
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
Jump to Line
Something went wrong with that request. Please try again.