|
29 | 29 | end |
30 | 30 | end |
31 | 31 |
|
| 32 | + context "when the fixture is 'with no content licence'" do |
| 33 | + let(:fixture_name) { 'with no content licence' } |
| 34 | + let(:result) { govuk_footer(content_licence: fixture_options[:contentLicence]) } |
| 35 | + |
| 36 | + it 'has HTML matching the fixture' do |
| 37 | + expect(result).to eq_html(fixture_html) |
| 38 | + end |
| 39 | + end |
| 40 | + |
32 | 41 | context "when the fixture is 'with custom text content licence and copyright notice'" do |
33 | 42 | let(:fixture_name) { 'with custom text content licence and copyright notice' } |
34 | 43 | let(:result) { govuk_footer(content_licence: fixture_options[:contentLicence][:text], copyright: fixture_options[:copyright][:text]) } |
|
56 | 65 | end |
57 | 66 | end |
58 | 67 |
|
| 68 | + context "when the fixture is 'with only custom meta'" do |
| 69 | + let(:fixture_name) { 'with only custom meta' } |
| 70 | + let(:result) { govuk_footer(content_licence: fixture_options[:contentLicence], meta: { text: fixture_options[:meta][:text] }) } |
| 71 | + |
| 72 | + it 'has HTML matching the fixture' do |
| 73 | + expect(result).to eq_html(fixture_html) |
| 74 | + end |
| 75 | + end |
| 76 | + |
59 | 77 | context "when the fixture is 'with meta links and meta content'" do |
60 | 78 | let(:fixture_name) { 'with meta links and meta content' } |
61 | 79 | let(:result) { govuk_footer(meta: { items: fixture_options[:meta][:items], text: fixture_options[:meta][:html].html_safe }) } |
|
65 | 83 | end |
66 | 84 | end |
67 | 85 |
|
| 86 | + context "when the fixture is 'with only meta links'" do |
| 87 | + let(:fixture_name) { 'with only meta links' } |
| 88 | + let(:result) { govuk_footer(content_licence: fixture_options[:contentLicence], meta: { items: fixture_options[:meta][:items] }) } |
| 89 | + |
| 90 | + it 'has HTML matching the fixture' do |
| 91 | + expect(result).to eq_html(fixture_html) |
| 92 | + end |
| 93 | + end |
| 94 | + |
68 | 95 | context "when the fixture is 'with default width navigation (one column)'" do |
69 | 96 | let(:fixture_name) { 'with default width navigation (one column)' } |
70 | 97 | let(:result) { govuk_footer(navigation: fixture_options[:navigation]) } |
|
0 commit comments