require 'spec_helper' require 'haml' describe 'pugin/components/_status.html.haml', type: :view do context 'without a status message' do it 'renders as expected' do render partial: 'pugin/components/status', locals: { status: nil } expect(response).to eq( <

This is a BETA. Give feedback to improve it.

DATA ) end end context 'with a status message' do it 'renders as expected' do render partial: 'pugin/components/status', locals: { status: "test" } expect(rendered).to eq( <

This is a BETA. Give feedback to improve it.

DATA ) end end end