Sha256: 2833754e10f51bd0018cb7e56a4ce3be9986f10eca90d9c581f723fc0d9fe941
Contents?: true
Size: 388 Bytes
Versions: 14
Compression:
Stored size: 388 Bytes
Contents
require 'spec_helper' module WLang describe Template, 'call' do let(:template){ Template.new("Hello ${who}!") } it 'renders the template to a string by default' do template.render(:who => "world").should eq("Hello world!") end it 'allows specifying a buffer' do template.render({:who => "world"}, "Hey, ").should eq("Hey, Hello world!") end end end
Version data entries
14 entries across 14 versions & 1 rubygems