Skip to content

Commit

Permalink
Move content id meta tag
Browse files Browse the repository at this point in the history
This is now part of the analytics component
alphagov/static#1375

I've removed the test for this because frontend components are faked when
running the tests.
  • Loading branch information
MatMoore committed Apr 11, 2018
1 parent 39ce4bf commit 6bb1f20
Show file tree
Hide file tree
Showing 3 changed files with 0 additions and 33 deletions.
1 change: 0 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<% if @content_item.description %>
<meta name="description" content="<%= strip_tags(@content_item.description) %>" />
<% end %>
<meta name="govuk:content-id" content="<%= @content_item.content_id %>" />
<%= contextual_comms_test_variant.analytics_meta_tag.html_safe if whitelisted_campaign_page? %>
<%= yield :extra_head_content %>
</head>
Expand Down
28 changes: 0 additions & 28 deletions test/integration/content_item_test.rb

This file was deleted.

4 changes: 0 additions & 4 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -176,10 +176,6 @@ def assert_footer_has_published_dates(published = nil, last_updated = nil, histo
assert_has_published_dates(published, last_updated, history_link, 1)
end

def has_component_metadata(key, value)
assert page.has_css? "meta[#{key}=\"#{value}\"]", visible: false
end

def setup_and_visit_content_item(name, parameter_string = '')
@content_item = get_content_example(name).tap do |item|
content_store_has_item(item["base_path"], item.to_json)
Expand Down

0 comments on commit 6bb1f20

Please sign in to comment.