Sha256: 5dc7906c6438ad17ffc67cc75bf9b264639124c50087108265b038fcd8ac59d6

Contents?: true

Size: 626 Bytes

Versions: 2

Compression:

Stored size: 626 Bytes

Contents

# frozen_string_literal: true
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

2 entries across 2 versions & 1 rubygems

Version Path
faml-0.8.1 spec/render/filters/sass_spec.rb
faml-0.8.0 spec/render/filters/sass_spec.rb