cucumber-rest-bdd 0.4.0.pre.107 → 0.4.0.pre.109
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 +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a0aca65aac7a280c6f514f6425438d97234be10
|
4
|
+
data.tar.gz: fe108a92dea90a2356e17e6ea3a44c111d20293f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 352f26dcebfd1a031cc86a8bf4ef4aa9aa394f297c53779f70306d4b4acc3b4941e68556b653b4dcc77ba1aed2d3cf9b4a80700144bec5a7ed34a951c378ca04
|
7
|
+
data.tar.gz: d6528d718d9e19f35d629fbfa4bb073f1a37b78143569d3cad83de211aa2c73c607bc97d18281980876c7b94f3726db617d078c9fc7a7de790f984652afb364a
|
@@ -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#{@response.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|
|