Sha256: 3e9290e319386e7c2b5faad2e16c6628b9a540e1ca155dc029d61f1c2e7ca113
Contents?: true
Size: 1.25 KB
Versions: 12
Compression:
Stored size: 1.25 KB
Contents
describe Hamlit::Filters::Coffee do describe '#compile' do it 'renders coffee filter' do assert_render(<<-HAML, <<-HTML, compatible_only: :haml) :coffee foo = -> alert('hello') HAML <script> (function() { var foo; foo = function() { return alert('hello'); }; }).call(this); </script> HTML end it 'renders coffeescript filter' do assert_render(<<-HAML, <<-HTML, compatible_only: :haml) :coffee foo = -> alert('hello') HAML <script> (function() { var foo; foo = function() { return alert('hello'); }; }).call(this); </script> HTML end it 'renders coffeescript filter' do assert_render(<<-'HAML', <<-HTML, compatible_only: :haml) :coffee foo = -> alert("#{'<&>'}") HAML <script> (function() { var foo; foo = function() { return alert("<&>"); }; }).call(this); </script> HTML end end end
Version data entries
12 entries across 12 versions & 1 rubygems