Sha256: 6d64e894ec90eccbd60cd949b2632e6efcf1f830b30481d5a4886919c94292e6
Contents?: true
Size: 882 Bytes
Versions: 4
Compression:
Stored size: 882 Bytes
Contents
require 'spec_helper' describe Cshaml::Sprockets::CoffeeTemplate do describe 'evaluate' do def process(data) described_class.new { data }.render end it "should support coffeescript" do process(%{test}).should include(%{haml.compileHaml({source: 'test', generator: 'coffeescript'}}) end end end describe Cshaml::Sprockets::Template do describe 'evaluate' do def process(data) described_class.new { data }.render end it 'should escape the string correctly' do process(%{test}).should include(%{haml.compileHaml({source: 'test'}}) process(%{test "test"}).should include(%{haml.compileHaml({source: 'test "test"'}}) process(%{test\ntest}).should include(%{haml.compileHaml({source: 'test\\ntest'}}) process(%{test 'test'}).should include(%{haml.compileHaml({source: 'test \\'test\\''}}) end end end
Version data entries
4 entries across 4 versions & 1 rubygems