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
faml-0.3.2 spec/render/filters/sass_spec.rb
faml-0.3.1 spec/render/filters/sass_spec.rb
faml-0.3.0 spec/render/filters/sass_spec.rb
faml-0.2.16 spec/render/filters/sass_spec.rb
faml-0.2.15 spec/render/filters/sass_spec.rb
faml-0.2.14 spec/render/filters/sass_spec.rb
faml-0.2.13 spec/render/filters/sass_spec.rb
faml-0.2.12 spec/render/filters/sass_spec.rb
faml-0.2.11 spec/render/filters/sass_spec.rb
faml-0.2.10 spec/render/filters/sass_spec.rb
faml-0.2.9 spec/render/filters/sass_spec.rb
faml-0.2.8 spec/render/filters/sass_spec.rb
faml-0.2.7 spec/render/filters/sass_spec.rb
faml-0.2.6 spec/render/filters/sass_spec.rb
faml-0.2.5 spec/render/filters/sass_spec.rb
faml-0.2.4 spec/render/filters/sass_spec.rb
faml-0.2.3 spec/render/filters/sass_spec.rb
faml-0.2.2 spec/render/filters/sass_spec.rb
faml-0.2.1 spec/render/filters/sass_spec.rb
faml-0.2.0 spec/render/filters/sass_spec.rb