govuk_content_item_loader 2.0.0 → 2.0.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 +4 -4
- data/CHANGELOG.md +5 -0
- data/lib/govuk_content_item_loader/test_helpers.rb +10 -0
- data/lib/govuk_content_item_loader/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: 7bb947b61c830b418c2941913dc207c17b6f175e3d6ba2a0ed13051ba60a0fc4
|
|
4
|
+
data.tar.gz: '024586893b7ad6492cec7ca9f7c52dbf0f6eab6fd480b0f1910727d9bd4becf9'
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6561e782d74861fc4b641f37924d55b92a5337c2cff0bd90d7331bbaaae6eaa91ea6320d4e3f4b6f0d9f337ca06a2caaa79dc9362692ac43134d579e634db82f
|
|
7
|
+
data.tar.gz: 2afa336300d20386fa0525edd2e97105e8d1291a70467cfb91fe629a81e268c799f1c49e6832ea045342c0b67ca2e5e5ed4f63561e21823a7d00878cefc70917
|
data/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,10 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 2.0.1
|
|
4
|
+
|
|
5
|
+
* Add `stub_conditional_content_loader_isnt_available` test helper.
|
|
6
|
+
* Add `stub_conditional_content_loader_has_gone_item` test helper.
|
|
7
|
+
|
|
3
8
|
## 2.0.0
|
|
4
9
|
|
|
5
10
|
* BREAKING: replaces `stub_conditional_loader_returns_content_item` test helper with `stub_conditional_loader_returns_content_item_for_path` to match requests to a specific request path, for testing in frontend applications.
|
|
@@ -16,6 +16,16 @@ module GovukConditionalContentItemLoaderTestHelpers
|
|
|
16
16
|
stub_publishing_api_graphql_does_not_have_item(base_path)
|
|
17
17
|
end
|
|
18
18
|
|
|
19
|
+
def stub_conditional_content_loader_isnt_available
|
|
20
|
+
stub_content_store_isnt_available
|
|
21
|
+
stub_publishing_api_isnt_available
|
|
22
|
+
end
|
|
23
|
+
|
|
24
|
+
def stub_conditional_content_loader_has_gone_item(base_path)
|
|
25
|
+
stub_content_store_has_gone_item(base_path)
|
|
26
|
+
stub_publishing_api_graphql_has_gone_item(base_path)
|
|
27
|
+
end
|
|
28
|
+
|
|
19
29
|
private
|
|
20
30
|
|
|
21
31
|
def content_item_for_base_path(base_path)
|