Sha256: 2ac66107e87d03bdff40a94afa236514dbc8d06d4631b4d38328de5a7f5380b8
Contents?: true
Size: 553 Bytes
Versions: 2
Compression:
Stored size: 553 Bytes
Contents
require 'spec_helper' describe 'Document::Template' do it 'should raise ArgumentError if no template were provided' do proc { Docify::Template.new }.should raise_error ArgumentError proc { Docify::Template.new(" ") }.should raise_error ArgumentError end it 'should render a valid content' do Docify::Template.new("{{a}}").render(:b => 'b').should == '' Docify::Template.new("{{a}}{{b}}").render(:a => 'a', :b => 'b').should == 'ab' Docify::Template.new("{{a}}{{b}}").render('a' => 'a', 'b' => 'b').should == 'ab' end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
docify-1.0.7 | spec/template_spec.rb |
docify-1.0.6 | spec/template_spec.rb |