Sha256: 7d101975972c9eaf2eea0f940eb5571ec9b2e893697a0ed324c16d1a92490d73

Contents?: true

Size: 628 Bytes

Versions: 22

Compression:

Stored size: 628 Bytes

Contents

require 'spec_helper'

RSpec.describe 'SCSS filter rendering', type: :render do
  it 'renders SCSS filter' do
    html = render_string(<<'HAML')
:scss
  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')
:scss
  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/scss_spec.rb
faml-0.3.1 spec/render/filters/scss_spec.rb
faml-0.3.0 spec/render/filters/scss_spec.rb
faml-0.2.16 spec/render/filters/scss_spec.rb
faml-0.2.15 spec/render/filters/scss_spec.rb
faml-0.2.14 spec/render/filters/scss_spec.rb
faml-0.2.13 spec/render/filters/scss_spec.rb
faml-0.2.12 spec/render/filters/scss_spec.rb
faml-0.2.11 spec/render/filters/scss_spec.rb
faml-0.2.10 spec/render/filters/scss_spec.rb
faml-0.2.9 spec/render/filters/scss_spec.rb
faml-0.2.8 spec/render/filters/scss_spec.rb
faml-0.2.7 spec/render/filters/scss_spec.rb
faml-0.2.6 spec/render/filters/scss_spec.rb
faml-0.2.5 spec/render/filters/scss_spec.rb
faml-0.2.4 spec/render/filters/scss_spec.rb
faml-0.2.3 spec/render/filters/scss_spec.rb
faml-0.2.2 spec/render/filters/scss_spec.rb
faml-0.2.1 spec/render/filters/scss_spec.rb
faml-0.2.0 spec/render/filters/scss_spec.rb