# frozen-string-literal: true require 'spec_helper' RSpec.describe 'CSS filter rendering', type: :render do it 'renders css filter' do expect(render_string(<\n\nhello\n\n") %div :css html { font-size: 12px; } %span hello HAML end it 'keeps indent' do expect(render_string(<\n\nhello\n\n") %div :css html { font-size: 12px; } %span hello HAML end it 'ignores empty filter' do expect(render_string(<\nhello\n\n") %div :css %span hello HAML end it 'parses string interpolation' do expect(render_string(<<'HAML')).to eq("\n") :css html { font-size: #{10 + 2}px; } HAML end it "doesn't escape in string interpolation" do expect(render_string(<<'HAML')).to eq("\n") :css #{''} HAML end end