gds-api-adapters 52.2.0 → 52.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/gds_api/test_helpers/email_alert_api.rb +6 -5
- data/lib/gds_api/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f8dc23aac5e0b989fd412af65284e640c45e2c0c8a35fdd83dab54fe7d3bff23
|
4
|
+
data.tar.gz: 9c825a8925aebc63e18faa968e93234529b5c6e3347f54994c58ca778a1cc6f3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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(
|
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" =>
|
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
|
}
|
data/lib/gds_api/version.rb
CHANGED