spec/views/pugin/layouts/pugin.html.haml_spec.rb in pugin-0.7.0 vs spec/views/pugin/layouts/pugin.html.haml_spec.rb in pugin-0.7.1

- old
+ new

@@ -4,12 +4,14 @@ describe 'pugin/layouts/pugin.html.haml', type: :view do context 'with a fully implemented person' do let(:person) { double('Grom::Node') } before :each do + HousesHelper = Class.new allow(person).to receive(:name).and_return('Jane Smith') allow(person).to receive(:position).and_return('Minister for Tests') allow(person).to receive(:id).and_return('123') + allow(HousesHelper).to receive(:commons_id).and_return('123') end it 'renders HAML without errors' do render expect(rendered).to have_title(I18n.t('.pugin.layouts.pugin.website_brand'))