cucumber-blendle-steps 0.9.0 → 0.9.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0087547916d1daeff6b67edeb76953227efc7271
4
- data.tar.gz: 44564338a07c02decac8e1008b693890c496bf15
3
+ metadata.gz: 68a2386409853587c7440b1afff70b67996bc928
4
+ data.tar.gz: 5df959dea61b252a834dda79e6efa4d6be740005
5
5
  SHA512:
6
- metadata.gz: 8639d6dfcadcf459bbb1fe0325e870c82aeaf81bbb50d97de3538ab82df4b87e34875602b3d2d08450ca365d05b6edd45bec038a3d1c0556776305ad6d086829
7
- data.tar.gz: 247bfd7cdf702dde13b0b2643afa7fe8b965b0da387872ed9ba1bc2472377e49f880aeacf1add8d17e05f3a36911f08556000e85b18c7b360603788ca2f9b95a
6
+ metadata.gz: a56fd8e5e522c290d1dade59fa26cc547dcc433a707109adfcb6985410e6517d72cc74c6095d5271cb0e6a0059ca145423783f540f45b67ea50f8eddbb426b5e
7
+ data.tar.gz: a0a9bf41f41f9421aa14315c2646632c78da2d5dd4fea79785b2f33677c640fa5f42aff49c68f4cde5d206a8bf04f3e9675e98689819d4138c1c45e886702d0a
@@ -123,6 +123,8 @@ def parse_row(row, object_name)
123
123
  Sequel.pg_array(eval(value))
124
124
  when :jsonb
125
125
  Sequel.pg_jsonb(eval(value))
126
+ when :hstore
127
+ Sequel.hstore(eval(value))
126
128
  else
127
129
  value
128
130
  end
@@ -59,6 +59,20 @@ When(/^the client does a (POST|PUT) request to the "([^"]*)" resource with the t
59
59
  step %(the client does a #{method} request to "#{url}" with the following content:), content
60
60
  end
61
61
 
62
+ # * When the client does a POST request to the "user_item_preference" resource with the template variable "user_id" set to "bartsimpson" and the template variable "item_id" set to "bnl-telegraaf-20130212-1" and the following content:
63
+ # """json
64
+ # {
65
+ # "prefer": "less"
66
+ # }
67
+ # """
68
+ #
69
+ When(/^the client does a (POST|PUT) request to the "([^"]*)" resource with the template variable "([^"]*)" set to "([^"]*)" and the template variable "([^"]*)" set to "([^"]*)" and the following content:$/) do |method, resource, key, value, key2, value2, content|
70
+ api = HyperResource.from_body(api_body)
71
+ url = api.send(resource, key => value, key2 => value2).href
72
+
73
+ step %(the client does a #{method} request to "#{url}" with the following content:), content
74
+ end
75
+
62
76
  def api_body
63
77
  current_accept_header = current_session.instance_variable_get(:@headers)['Accept']
64
78
 
@@ -6,6 +6,6 @@ module Cucumber
6
6
  # This module defines default steps used by all of Blendle Ruby projects.
7
7
  #
8
8
  module BlendleSteps
9
- VERSION = '0.9.0'.freeze
9
+ VERSION = '0.9.1'.freeze
10
10
  end
11
11
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cucumber-blendle-steps
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.0
4
+ version: 0.9.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jean Mertz
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-08-04 00:00:00.000000000 Z
11
+ date: 2016-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -355,7 +355,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
355
355
  version: '0'
356
356
  requirements: []
357
357
  rubyforge_project:
358
- rubygems_version: 2.5.1
358
+ rubygems_version: 2.6.8
359
359
  signing_key:
360
360
  specification_version: 4
361
361
  summary: Cucumber steps used by all of Blendle Ruby projects