brine-dsl 0.8.0 → 0.8.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: f8d77b9aa832ed23957643891de0c20ec1890efd
4
- data.tar.gz: 229b8e5d0efb6a37a17fa770bb4fe525990c261b
3
+ metadata.gz: 7db0f76807447d42f0c27abd45d3d84186e9f97c
4
+ data.tar.gz: c3b1401a78f633130aa43fe1aaaf5aba984432c0
5
5
  SHA512:
6
- metadata.gz: c0a2015596db450e4fa1abe781bd8eea7d40dcc8d9552a83230f90681c2fc1df1af69af6d01a02778a1de41f7eb220f6d82ae665367f3e8b04a1020be0c18467
7
- data.tar.gz: 6d72b507f93ec203e7af1460d23977c4394521cbff2edb4f564a5e3727493b6f9fa7721d6476ec2ff594420e118fa2da47eb7a1f5f0030b1c613c97dcb2e3c1c
6
+ metadata.gz: 2b7491ea425579bf0ef8d3130923cb24605da121c2c8620a247446c3a16a143fe8611fd850d09f19f91dc67efc1d097d7a918c8638ead49bbe269a130ba41487
7
+ data.tar.gz: b36c2ababc702d919e1aa34415d2523c8e365b058c94746ce1ec729d8099bf2f9e2691d3970738786ea705462127f1be1e58dd94a5d1b75fb1525eeac176a4f4
data/brine-dsl.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = 'brine-dsl'
4
- s.version = '0.8.0'
4
+ s.version = '0.8.1'
5
5
  s.platform = Gem::Platform::RUBY
6
6
  s.authors = ["Matt Whipple"]
7
7
  s.email = ["mwhipple@brightcove.com"]
@@ -33,3 +33,21 @@ Feature: Deprecation Messaging
33
33
  DEPRECATION:
34
34
  """
35
35
  And it should pass
36
+
37
+ Scenario: 0.9 depprecations
38
+ Given a file named "features/0.9.feature" with:
39
+ """
40
+
41
+ Feature: 0.9
42
+ Scenario: includes the entries
43
+ When the response body is assigned `{"foo":"bar"}`
44
+ Then the response body includes the entries:
45
+ | foo | bar |
46
+
47
+ """
48
+ When I run `cucumber --strict features/0.9.feature`
49
+ Then the output should contain:
50
+ """
51
+ 1 passed
52
+ """
53
+ And it should pass
@@ -10,22 +10,22 @@ Then(/^the response #{RESPONSE_ATTRIBUTES} has `([^`]*)` with a value that is no
10
10
  end
11
11
 
12
12
  Then(/^the response #{RESPONSE_ATTRIBUTES} includes? the entries:$/) do |attribute, table|
13
- replaced_with('Then', "the value of the response #{attribute} is including:\n\"\"\"#{table.hashes.to_json}\"\"\"", '0.9')
13
+ replaced_with('Then', "the value of the response #{attribute} is including:", '0.9', kv_table(table).to_json)
14
14
  end
15
15
 
16
16
  Then(/^the response body is a list of length (\d+)$/) do |length|
17
- replaced_with('Then', "the value of the response body is of length #{length}", '0.9')
17
+ replaced_with('Then', "the value of the response body is of length `#{length}`", '0.9')
18
18
  end
19
19
 
20
20
  Then(/^the response body is a list (with|without) an entry containing:$/) do |with, data|
21
21
  neg = (with == 'without') ? 'not ' : ''
22
- replaced_with('Then', "the value of the response body does #{neg}have any element that is including:\n\"\"\"#{table.hashes.to_json}\"\"\"", '0.9')
22
+ replaced_with('Then', "the value of the response body does #{neg}have any element that is including:", '0.9', table.hashes.to_json)
23
23
  end
24
24
 
25
25
  Then(/^the response body has `([^`]*)` which (in|ex)cludes? the entries:$/) do
26
26
  |child, in_or_ex, table|
27
27
  neg = (in_or_ex=='ex') ? 'not ' : ''
28
- replaced_with('Then', "the value of the response body child `#{child}` is #{neg}including:\n\"\"\"#{table.hashes.to_json}\"\"\"", '0.9')
28
+ replaced_with('Then', "the value of the response body child `#{child}` is #{neg}including:", '0.9', kv_table(table).to_json)
29
29
  end
30
30
 
31
31
  # This file is legacy or unsorted steps which will be deprecated or moved into
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: brine-dsl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.0
4
+ version: 0.8.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matt Whipple
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-06-18 00:00:00.000000000 Z
11
+ date: 2018-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber