Sha256: 4d0febb4bd20b8077171acdd5ccc5db57531c6c3d70f5d762c84ac7e1015efae
Contents?: true
Size: 597 Bytes
Versions: 22
Compression:
Stored size: 597 Bytes
Contents
require 'spec_helper' RSpec.describe 'SASS filter rendering', type: :render do it 'renders SASS filter' do html = render_string(<<'HAML') :sass nav ul margin: 0 content: "hello" HAML expect(html).to include('<style>') expect(html).to include('nav ul {') expect(html).to include('content: "hello"') end it 'parses string interpolation' do html = render_string(<<'HAML') :sass nav ul margin: #{0 + 5}px HAML expect(html).to include('<style>') expect(html).to include('nav ul {') expect(html).to include('margin: 5px') end end
Version data entries
22 entries across 22 versions & 2 rubygems
Version | Path |
---|---|
fast_haml-0.1.10 | spec/render/filters/sass_spec.rb |
fast_haml-0.1.9 | spec/render/filters/sass_spec.rb |