# frozen_string_literal: true require 'spec_helper' RSpec.describe 'Preserve filter rendering', type: :render do it 'renders preserve filter' do expect(render_string(<<'HAML')).to eq("start\nhello
wor ld
hello\nend\n") %span start :preserve hello #{"wor\nld
"} hello %span end HAML end it 'preserves last empty lines' do expect(render_string(<