Skip to content

Commit

Permalink
Remove test
Browse files Browse the repository at this point in the history
No longer required
  • Loading branch information
Chris Yoong committed Dec 1, 2021
1 parent f24e818 commit 3f6cce4
Showing 1 changed file with 0 additions and 19 deletions.
19 changes: 0 additions & 19 deletions test/views/content_items/attachments.html.erb_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -43,23 +43,4 @@ class ContentItemsAttachmentsTest < ActionView::TestCase
assert_includes rendered, "gem-c-govspeak"
assert_includes rendered, "some html"
end

test "renders overview title when attachment title matches parent" do
@content_item = PublicationPresenter.new(
{ "document_type" => "correspondence",
"title" => "Matching",
"details" => { "attachments" => [{ "id" => "attachment_id",
"title" => "Matching",
"url" => "some/url" }],
"featured_attachments" => %w[attachment_id] } },
"/publication",
ApplicationController.new.view_context,
)
render(
partial: "content_items/context_and_title",
)

assert_includes rendered, "Correspondence overview:"
assert_select "h1 span"
end
end

0 comments on commit 3f6cce4

Please sign in to comment.