Sha256: c2caec8a920e19be893ad5f9c2c105274b2458f29981afe3f60bc3d210ee6517
Contents?: true
Size: 650 Bytes
Versions: 2
Compression:
Stored size: 650 Bytes
Contents
# frozen_string_literal: true require 'spec_helper' RSpec.describe 'CoffeeScript filter rendering', type: :render do it 'renders CoffeeScript filter' do html = render_string(<<HAML) :coffee square = (x) -> x * x square(3) HAML expect(html).to include('<script>') expect(html).to include('square = function(x)') expect(html).to include('square(3)') end it 'parses string interpolation' do html = render_string(<<'HAML') :coffee square = (x) -> x * x square(#{1 + 2}) HAML expect(html).to include('<script>') expect(html).to include('square = function(x)') expect(html).to include('square(3)') end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
faml-0.8.1 | spec/render/filters/coffee_spec.rb |
faml-0.8.0 | spec/render/filters/coffee_spec.rb |