require 'spec_helper' RSpec.describe 'Plain filter rendering', type: :render do it 'renders plain filter' do expect(render_string(<\nhello\nworld\n\n") %span :plain he#{'llo'} %span world HAML end it 'strips last empty lines' do expect(render_string(<\nhello\n\nabc\nworld\n\n") %span :plain he#{'llo'} abc %span world HAML end end