gds-api-adapters 52.2.0 → 52.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6336130268f19fee00d05ba2a6332da8a534f4b94fbc5eb52d774a117305b9f9
4
- data.tar.gz: 7e6596cb403f449a386f9e08b80b4ccc253c0efb4d7e465d13de5ec955711406
3
+ metadata.gz: f8dc23aac5e0b989fd412af65284e640c45e2c0c8a35fdd83dab54fe7d3bff23
4
+ data.tar.gz: 9c825a8925aebc63e18faa968e93234529b5c6e3347f54994c58ca778a1cc6f3
5
5
  SHA512:
6
- metadata.gz: e8c4700994a3894fe6c3a2e6d97902c084afad6302e12cc211d3cf12febd27248ff7718f33a1e54a3fdc1c7bb640807804fcf8bdff55aa8bb7644833cb92dde2
7
- data.tar.gz: 99396abbb0adc97095c80ccbceaea467be35b59df0ddd8ec260ceae32fcb4e06a0640c6b87d76229246a0d53dcaff06a19342120d3ca6958ebd95b3b76f31124
6
+ metadata.gz: 0c8111b12ff9cd8e0900ec81bcd4075acb67a8f4522a4e7d165ea3466aa5a05b763838f7a1aaccb8b2c91d79e735a7ca5b0a1f554d50b7cf80670715f49bc5cf
7
+ data.tar.gz: 999361d4a4cbdd7265a4050c354db0811a96ec0c6a1c2accba6e56a861d37961e14583e699968b4f1456443d64cacc802d8962e7a495b9cb09c8dab5b174ca53
@@ -45,11 +45,11 @@ module GdsApi
45
45
  .to_return(status: 404)
46
46
  end
47
47
 
48
- def email_alert_api_has_subscription(id, frequency)
48
+ def email_alert_api_has_subscription(id, frequency, title: "Some title")
49
49
  stub_request(:get, subscription_url(id))
50
50
  .to_return(
51
51
  status: 200,
52
- body: get_subscription_response(id, frequency).to_json,
52
+ body: get_subscription_response(id, frequency, title).to_json,
53
53
  )
54
54
  end
55
55
 
@@ -90,16 +90,17 @@ module GdsApi
90
90
  }
91
91
  end
92
92
 
93
- def get_subscription_response(subscription_id, frequency)
93
+ def get_subscription_response(id, frequency, title = "Some title")
94
94
  {
95
95
  "subscription" => {
96
96
  "subscriber_id" => 1,
97
97
  "subscriber_list_id" => 1000,
98
98
  "frequency" => frequency,
99
- "id" => subscription_id,
99
+ "id" => id,
100
100
  "subscriber_list" => {
101
101
  "id" => 1000,
102
- "slug" => "some-thing"
102
+ "slug" => "some-thing",
103
+ "title" => title,
103
104
  }
104
105
  }
105
106
  }
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '52.2.0'.freeze
2
+ VERSION = '52.2.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gds-api-adapters
3
3
  version: !ruby/object:Gem::Version
4
- version: 52.2.0
4
+ version: 52.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - GOV.UK Dev