Skip to content

Commit

Permalink
Allow test helpers to find subscriber-list by content-id
Browse files Browse the repository at this point in the history
This is a feature that works and we use in single page notifications but
it wasn't available in this test helper.
  • Loading branch information
huwd committed Jan 21, 2022
1 parent bb50efe commit 0c97d19
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/gds_api/test_helpers/email_alert_api.rb
Expand Up @@ -557,6 +557,7 @@ def build_subscriber_lists_url(attributes = nil)
if attributes
tags = attributes["tags"]
links = attributes["links"]
content_id = attributes["content_id"]
document_type = attributes["document_type"]
email_document_supertype = attributes["email_document_supertype"]
government_document_supertype = attributes["government_document_supertype"]
Expand All @@ -566,6 +567,7 @@ def build_subscriber_lists_url(attributes = nil)
params = {}
params[:tags] = tags if tags
params[:links] = links if links
params[:content_id] = content_id if content_id
params[:document_type] = document_type if document_type
params[:email_document_supertype] = email_document_supertype if email_document_supertype
params[:government_document_supertype] = government_document_supertype if government_document_supertype
Expand Down

0 comments on commit 0c97d19

Please sign in to comment.