cucumber-rest-bdd 0.5.2 → 0.5.3.pre.149

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: a18c4b39e7ae302c5e3ab38d8d1ffbff629caf7c
4
- data.tar.gz: 55f4f9173021dda712569ee17ee16dd12ae0b2fd
3
+ metadata.gz: 8f0755b8a8a828fb0b9eb51c4e93cde54582d19f
4
+ data.tar.gz: 66f9efbd794d79b2c99b902fa7f1faebe0cb2c13
5
5
  SHA512:
6
- metadata.gz: f030988328155c926efc5f8edf8e1d816d2dff358d1027d4f8f156f83c63404bd8897be5c30368ffda47f64311556c1c2b9b1e5007a06f9e700ee7cb76183e1d
7
- data.tar.gz: '0126845389bacd9e3e6606f03c665ef131626a41f25460025c528df203febf9f611956ee36fe8a825cd9e41625915c0dc5e3aa17142b866b73de15add0c8e53c'
6
+ metadata.gz: d054b0b230e0d239d40439998c2fba7e21cbfae5827ac61540d41b469404949110bb8ee4935a7b9dfed0eba0a0a39076f6853de49358b3572783d865b32c2ba3
7
+ data.tar.gz: c273267aea1ec5a7d3d6245b2d4809fea54510d9ed5bb3ed2c23c797b5279be60bb06351e15e32ff2593670e2e9a0fbc6150ecedc956310aaa1489c79956820d
data/Dockerfile CHANGED
@@ -1,7 +1,7 @@
1
1
  FROM ruby
2
2
 
3
3
  MAINTAINER "Harry Bragg <harry.bragg@graze.com>"
4
- LABEL version="0.5.2" \
4
+ LABEL version="0.5.3" \
5
5
  license="MIT"
6
6
 
7
7
  COPY . /usr/local/cucumber-rest-bdd
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'cucumber-rest-bdd'
3
- s.version = '0.5.2'
3
+ s.version = '0.5.3'
4
4
  s.version = "#{s.version}-#{ENV['TRAVIS_BUILD_NUMBER']}" if ENV['TRAVIS'] && ENV['TRAVIS_TAG'] == ''
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.date = '2017-01-10'
@@ -1,3 +1,4 @@
1
+ @errors
1
2
  Feature: Handling error responses
2
3
 
3
4
  Background:
@@ -1,6 +1,10 @@
1
1
  require 'cucumber-rest-bdd/steps/resource'
2
2
  require 'cucumber-rest-bdd/types'
3
3
 
4
+ Then(/^print the response$/) do
5
+ puts %/The response:\n#{@response.to_json_s}/
6
+ end
7
+
4
8
  # response interrogation
5
9
 
6
10
  Then(/^the response is a list (?:of|containing) (#{FEWER_MORE_THAN})?\s*(#{CAPTURE_INT}|\d+) .*?$/) do |count_mod, count|
@@ -102,7 +106,7 @@ end
102
106
 
103
107
  # gets the relevant key for the response based on the first key element
104
108
  def get_key(grouping)
105
- if ENV['error_key'] && !ENV['error_key'].empty? && grouping.count > 1 && grouping[-2][:key].singularize == ['error_key'] then
109
+ if ENV['error_key'] && !ENV['error_key'].empty? && grouping.count > 1 && grouping[-2][:key].singularize == ENV['error_key'] then
106
110
  get_root_error_key()
107
111
  else
108
112
  get_root_data_key()
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.5.2
4
+ version: 0.5.3.pre.149
5
5
  platform: ruby
6
6
  authors:
7
7
  - Harry Bragg
@@ -106,9 +106,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
106
106
  version: '0'
107
107
  required_rubygems_version: !ruby/object:Gem::Requirement
108
108
  requirements:
109
- - - ">="
109
+ - - ">"
110
110
  - !ruby/object:Gem::Version
111
- version: '0'
111
+ version: 1.3.1
112
112
  requirements: []
113
113
  rubyforge_project:
114
114
  rubygems_version: 2.6.8