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

Version Path
pugin-1.10.9 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.10.8 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.10.7 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.10.6 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.10.5 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.10.4 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.10.3 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.10.2 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.10.1 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.10.0 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.9.7 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.9.6 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.9.5 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.9.4 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.9.3 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.9.2 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.9.1 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.9.0 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.8.9 spec/views/pugin/components/_footer.html.haml_spec.rb
pugin-1.8.8 spec/views/pugin/components/_footer.html.haml_spec.rb