cucumber-rest-bdd 0.4.2 → 0.4.3.pre.114
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +1 -1
- data/cucumber-rest-bdd.gemspec +1 -1
- data/lib/cucumber-rest-bdd/steps/resource.rb +2 -2
- data/lib/cucumber-rest-bdd/types.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: de06c1aa104f0b375f20b7fb25669115cf1b78fe
|
4
|
+
data.tar.gz: 8b8cd9c626d41b1adeb62092455a1d58fa7a04ad
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b0477e470c13c16146976f538bac0f2e905e5d143f48092c903d29ca9d9112e42faea18227838b8db102d5f17c8932436bd7a64730a8b3ad069875c8c4f995ad
|
7
|
+
data.tar.gz: b35056324778b0a8e9a3e2e4807e239dd287a4db5fb6dd842b3a135d70daf2e533ddd27b1f578dd372efb044f6a96dd14ab97a6846f1b5e0a9f56eeb701a7612
|
data/Dockerfile
CHANGED
data/cucumber-rest-bdd.gemspec
CHANGED
@@ -91,7 +91,7 @@ end
|
|
91
91
|
|
92
92
|
# PUT
|
93
93
|
|
94
|
-
When(/^I request to (?:create|replace) (?:an?|the) ((?![^"]+?(?: for | in | on ))[^"]+?)(?: with (?:key|id))? "([^"]+)"(#{LEVELS})?$/) do |resource, id, levels|
|
94
|
+
When(/^I request to (?:create|replace|set) (?:an?|the) ((?![^"]+?(?: for | in | on ))[^"]+?)(?: with (?:key|id))? "([^"]+)"(#{LEVELS})?$/) do |resource, id, levels|
|
95
95
|
resource_name = get_resource(resource)
|
96
96
|
level = Level.new(levels)
|
97
97
|
if ENV['set_parent_id'] == 'true'
|
@@ -144,7 +144,7 @@ end
|
|
144
144
|
# value capture
|
145
145
|
|
146
146
|
When(/^I save (?:attribute )?"([^"]+)"$/) do |attribute|
|
147
|
-
steps %Q{When I grab "#{get_json_path(attribute)}"}
|
147
|
+
steps %Q{When I grab "#{get_json_path(attribute)}" as "#{attribute}"}
|
148
148
|
end
|
149
149
|
|
150
150
|
When(/^I save (?:attribute )?"([^"]+)" to "([^"]+)"$/) do |attribute, ref|
|
@@ -103,7 +103,7 @@ def get_resource(name)
|
|
103
103
|
end
|
104
104
|
|
105
105
|
def get_root_json_path()
|
106
|
-
|
106
|
+
return ENV.has_key?('data_key') && !ENV['data_key'].empty? ? "$.#{ENV['data_key']}." : "$."
|
107
107
|
end
|
108
108
|
|
109
109
|
def get_json_path(names)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cucumber-rest-bdd
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3.pre.114
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Harry Bragg
|
@@ -104,9 +104,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
104
104
|
version: '0'
|
105
105
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
106
106
|
requirements:
|
107
|
-
- - "
|
107
|
+
- - ">"
|
108
108
|
- !ruby/object:Gem::Version
|
109
|
-
version:
|
109
|
+
version: 1.3.1
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
112
|
rubygems_version: 2.4.8
|