Skip to content

Commit

Permalink
Merge pull request #1710 from alphagov/remove-specialist-topic-code
Browse files Browse the repository at this point in the history
Remove specialist topic code
  • Loading branch information
beccapearce authored Feb 29, 2024
2 parents e2971d7 + be6900d commit 9687c7b
Show file tree
Hide file tree
Showing 2 changed files with 0 additions and 9 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@ def link_hash
case content_item_type
when "taxon"
single_link(key: "taxon_tree")
when "topic"
single_link(key: "topics")
when "organisation"
single_link(key: "organisations")
when "person"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,13 +43,6 @@
.to match(list_params.merge("links" => { "topical_events" => %w[foo-id] }))
end

it "returns subscriber list params for topics" do
content_item.merge!("document_type" => "topic")

expect(described_class.call(content_item))
.to match(list_params.merge("links" => { "topics" => %w[foo-id] }))
end

it "returns subscriber list params for service manual topics" do
content_item.merge!("document_type" => "service_manual_topic")

Expand Down

0 comments on commit 9687c7b

Please sign in to comment.