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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 68a2386409853587c7440b1afff70b67996bc928
|
4
|
+
data.tar.gz: 5df959dea61b252a834dda79e6efa4d6be740005
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a56fd8e5e522c290d1dade59fa26cc547dcc433a707109adfcb6985410e6517d72cc74c6095d5271cb0e6a0059ca145423783f540f45b67ea50f8eddbb426b5e
|
7
|
+
data.tar.gz: a0a9bf41f41f9421aa14315c2646632c78da2d5dd4fea79785b2f33677c640fa5f42aff49c68f4cde5d206a8bf04f3e9675e98689819d4138c1c45e886702d0a
|
@@ -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
|
|
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.
|
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-
|
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.
|
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
|