Sha256: 4f5e2803a872c2de290a5f12985447953daa66f69ddeaa90f0c432cc49c2a21c
Contents?: true
Size: 453 Bytes
Versions: 4
Compression:
Stored size: 453 Bytes
Contents
require 'spec_helper' require 'tilt' require 'sibilant/tilt' describe Tilt::Sibilant::SibilantTemplate do it 'should be registered for .sibilant files' do Tilt['test.sibilant'].should equal(Tilt::Sibilant::SibilantTemplate) end it 'translates sibilant code on render' do template = Tilt::Sibilant::SibilantTemplate.new { |t| "(console.log 'hello 'world)" } template.render.strip.should eq('console.log("hello", "world");') end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
sibilant-0.0.4 | spec/tilt_helper_spec.rb |
sibilant-0.0.3 | spec/tilt_helper_spec.rb |
sibilant-0.0.2 | spec/tilt_helper_spec.rb |
sibilant-0.0.1 | spec/tilt_helper_spec.rb |