Sha256: 05482d0b547d58ef018a0fa2d8f819dade33b4a108e3867cb31746de261eec62

Contents?: true

Size: 596 Bytes

Versions: 10

Compression:

Stored size: 596 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

10 entries across 10 versions & 1 rubygems

Version Path
faml-0.6.0 spec/render/filters/sass_spec.rb
faml-0.5.1 spec/render/filters/sass_spec.rb
faml-0.5.0 spec/render/filters/sass_spec.rb
faml-0.4.2 spec/render/filters/sass_spec.rb
faml-0.4.1 spec/render/filters/sass_spec.rb
faml-0.4.0 spec/render/filters/sass_spec.rb
faml-0.3.6 spec/render/filters/sass_spec.rb
faml-0.3.5 spec/render/filters/sass_spec.rb
faml-0.3.4 spec/render/filters/sass_spec.rb
faml-0.3.3 spec/render/filters/sass_spec.rb