Sha256: 3987cbea4d1b9f5923b850d52b09bfb7a81b3afccf91d6220aae3f71808f3df5
Contents?: true
Size: 987 Bytes
Versions: 56
Compression:
Stored size: 987 Bytes
Contents
require 'helper' describe Temple::Filters::StaticMerger do before do @filter = Temple::Filters::StaticMerger.new end it 'should merge serveral statics' do @filter.call([:multi, [:static, "Hello "], [:static, "World, "], [:static, "Good night"] ]).should.equal [:static, "Hello World, Good night"] end it 'should merge serveral statics around code' do @filter.call([:multi, [:static, "Hello "], [:static, "World!"], [:code, "123"], [:static, "Good night, "], [:static, "everybody"] ]).should.equal [:multi, [:static, "Hello World!"], [:code, "123"], [:static, "Good night, everybody"] ] end it 'should merge serveral statics across newlines' do @filter.call([:multi, [:static, "Hello "], [:static, "World, "], [:newline], [:static, "Good night"] ]).should.equal [:multi, [:static, "Hello World, Good night"], [:newline] ] end end
Version data entries
56 entries across 56 versions & 6 rubygems