Sha256: d5a3471c4abac49cc414601954e1855d6f7e1ed6a13f2f7f7df542555d903130
Contents?: true
Size: 505 Bytes
Versions: 3
Compression:
Stored size: 505 Bytes
Contents
require 'spec_helper' describe Hotcell::Tag do let(:context) { Hotcell::Context.new } context 'complex parsing and rendering' do def parse source Hotcell::Template.parse(source) end specify { parse("{{ 'Hello' }}").render.should == 'Hello' } specify { parse("{{! 'Hello' }}").render.should == '' } specify { parse("{{ res = 'Hello' }} {{ res }}").render.should == 'Hello Hello' } specify { parse("{{! res = 'Hello' }} {{ res }}").render.should == ' Hello' } end end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
hotcell-0.3.0 | spec/lib/hotcell/node/tag_spec.rb |
hotcell-0.2.0 | spec/lib/hotcell/node/tag_spec.rb |
hotcell-0.1.0 | spec/lib/hotcell/node/tag_spec.rb |