Skip to content

Instantly share code, notes, and snippets.

context 'with sintatra helpers' do
let(:template) { Tilt::MustacheTemplate.new { |t| 'Hello {{ name.hello }}!'} }
let(:scope) do
scope = Object.new
def scope.name name
{"hello" => 'Moto!'}
end
scope
end