gds-api-adapters 11.1.0 → 11.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/gds_api/test_helpers/content_store.rb +15 -0
- data/lib/gds_api/version.rb +1 -1
- metadata +4 -4
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'gds_api/test_helpers/json_client_helper'
|
2
2
|
require 'gds_api/test_helpers/common_responses'
|
3
|
+
require 'json'
|
3
4
|
|
4
5
|
module GdsApi
|
5
6
|
module TestHelpers
|
@@ -35,6 +36,20 @@ module GdsApi
|
|
35
36
|
}
|
36
37
|
}
|
37
38
|
end
|
39
|
+
|
40
|
+
def assert_content_store_put_item(base_path, attributes = {})
|
41
|
+
url = CONTENT_STORE_ENDPOINT + "/content" + base_path
|
42
|
+
if attributes.empty?
|
43
|
+
assert_requested(:put, url)
|
44
|
+
else
|
45
|
+
assert_requested(:put, url) do |req|
|
46
|
+
data = JSON.parse(req.body)
|
47
|
+
attributes.to_a.all? do |key, value|
|
48
|
+
data[key.to_s] == value
|
49
|
+
end
|
50
|
+
end
|
51
|
+
end
|
52
|
+
end
|
38
53
|
end
|
39
54
|
end
|
40
55
|
end
|
data/lib/gds_api/version.rb
CHANGED
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: 11.
|
4
|
+
version: 11.2.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2014-06-
|
12
|
+
date: 2014-06-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: plek
|
@@ -382,7 +382,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
382
382
|
version: '0'
|
383
383
|
segments:
|
384
384
|
- 0
|
385
|
-
hash:
|
385
|
+
hash: 2200444049170036569
|
386
386
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
387
387
|
none: false
|
388
388
|
requirements:
|
@@ -391,7 +391,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
391
391
|
version: '0'
|
392
392
|
segments:
|
393
393
|
- 0
|
394
|
-
hash:
|
394
|
+
hash: 2200444049170036569
|
395
395
|
requirements: []
|
396
396
|
rubyforge_project:
|
397
397
|
rubygems_version: 1.8.23
|