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