cucumber-rest-bdd 0.4.0.pre.109 → 0.4.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cucumber-rest-bdd/steps/response.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: 02095291c470619954a467d341e41f0d90ce70a8
|
4
|
+
data.tar.gz: aff0a8e22e6588a83e57d044814e3e704792e38d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4e7d9b4d7297ae82a1056a6ca9113be33f337937e4fd16dba9c5348d33a50ba7ef99e4d152d0f37969231693728f56ea7645374c68a9b9a067c7f475972f01fb
|
7
|
+
data.tar.gz: 8e8a0a6b41f2ff4a4bd8cde0635566de5330d2c79fbe0adb483c16707e1710baeec4ed576e09342246248623c883e97a73e96308c62cc750fe2526975448ae32
|
@@ -5,7 +5,7 @@ require 'cucumber-rest-bdd/types'
|
|
5
5
|
|
6
6
|
Then(/^the response is a list (?:of|containing) (#{FEWER_MORE_THAN})?\s*(#{CAPTURE_INT}|\d+) .*?$/) do |count_mod, count|
|
7
7
|
list = @response.get_as_type get_root_json_path(), 'array'
|
8
|
-
raise %/Expected at least #{count} items in array for path '#{get_root_json_path()}', found: #{list.count}\n#{@
|
8
|
+
raise %/Expected at least #{count} items in array for path '#{get_root_json_path()}', found: #{list.count}\n#{@repsponse.to_json_s}/ if !num_compare(count_mod, list.count, count.to_i)
|
9
9
|
end
|
10
10
|
|
11
11
|
Then(/^the response ((?:#{HAVE_SYNONYM} (?:a|an|(?:(?:#{FEWER_MORE_THAN})?\s*#{CAPTURE_INT}|\d+)) (?:\w+) )*)#{HAVE_SYNONYM} (?:the )?(?:following )?(?:data )?attributes:$/) do |nesting, attributes|
|
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.0
|
4
|
+
version: 0.4.0
|
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: '0'
|
110
110
|
requirements: []
|
111
111
|
rubyforge_project:
|
112
112
|
rubygems_version: 2.4.8
|