gds-api-adapters 11.1.0 → 11.2.0

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.
@@ -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
@@ -1,3 +1,3 @@
1
1
  module GdsApi
2
- VERSION = '11.1.0'
2
+ VERSION = '11.2.0'
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: 11.1.0
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-19 00:00:00.000000000 Z
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: 1088972631923026448
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: 1088972631923026448
394
+ hash: 2200444049170036569
395
395
  requirements: []
396
396
  rubyforge_project:
397
397
  rubygems_version: 1.8.23