Sha256: 1e89d554e85035513c63c7f5ae4c9551088860de90d92c58df47bbd934522af1
Contents?: true
Size: 801 Bytes
Versions: 21
Compression:
Stored size: 801 Bytes
Contents
require 'spec_helper' require 'haml' describe 'pugin/components/_footer.html.haml', type: :view do before do allow(view).to receive(:root_path).and_return('http://www.parliament.uk') allow(view).to receive(:meta_cookie_policy_path).and_return("/meta/cookie-policy") render end it 'renders as expected' do expect(response).to eq(<<DATA <footer> <div class='container'> <h2 class='logo'>UK Parliament</h2> <ul class='list'> <li><a href="http://www.parliament.uk">Current Parliament.uk website</a></li> <li><a href="/meta/cookie-policy">Cookie Policy</a></li> <li><a href="https://www.parliament.uk/site-information/data-protection/data-protection-and-privacy-policy/">Data protection and privacy policy</a></li> </ul> </div> </footer> DATA ) end end
Version data entries
21 entries across 21 versions & 1 rubygems