publishing_platform_api_adapters 0.13.0 → 0.13.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:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 14cea6f36c1e38e0abcddbf7d173847e6981e22c98381b45ffeba213a982e45c
|
|
4
|
+
data.tar.gz: 84363cb367d0b5a275f54f8413ce8ce38b463d213de1bd21b4ba4cb672266597
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 6388d75747f5ec861a932782994d259b8eaa80bb954d1575368f7ca4ea6c46a9d8bebeb2556c912996127eac32a762a1ac073e275cc070a13d51a83b7d90329e
|
|
7
|
+
data.tar.gz: 6e5a5a42b40950bf04dbc74038759c3837ce4b08e11f66108212513a76a338a13eb2119f573218c9a69e7098daada2b4aa9408cf5d429453bca6956f40a65ae9
|
|
@@ -0,0 +1,15 @@
|
|
|
1
|
+
module PublishingPlatformApi
|
|
2
|
+
module TestHelpers
|
|
3
|
+
module Search
|
|
4
|
+
SEARCH_ENDPOINT = PublishingPlatformLocation.find("search-api")
|
|
5
|
+
|
|
6
|
+
def stub_any_search
|
|
7
|
+
stub_request(:get, %r{#{SEARCH_ENDPOINT}/search.json})
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
def stub_any_search_to_return_no_results
|
|
11
|
+
stub_any_search.to_return(body: { results: [] }.to_json)
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
end
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: publishing_platform_api_adapters
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.13.
|
|
4
|
+
version: 0.13.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Publishing Platform
|
|
@@ -207,6 +207,7 @@ files:
|
|
|
207
207
|
- lib/publishing_platform_api/test_helpers/organisations.rb
|
|
208
208
|
- lib/publishing_platform_api/test_helpers/publishing_api.rb
|
|
209
209
|
- lib/publishing_platform_api/test_helpers/router.rb
|
|
210
|
+
- lib/publishing_platform_api/test_helpers/search.rb
|
|
210
211
|
- lib/publishing_platform_api/version.rb
|
|
211
212
|
- lib/publishing_platform_api_adapters.rb
|
|
212
213
|
licenses:
|