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 +4 -4
- data/brine-dsl.gemspec +1 -1
- data/features/deprecations/replaced_with.feature +18 -0
- data/lib/brine/rest_steps.rb +4 -4
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7db0f76807447d42f0c27abd45d3d84186e9f97c
|
4
|
+
data.tar.gz: c3b1401a78f633130aa43fe1aaaf5aba984432c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2b7491ea425579bf0ef8d3130923cb24605da121c2c8620a247446c3a16a143fe8611fd850d09f19f91dc67efc1d097d7a918c8638ead49bbe269a130ba41487
|
7
|
+
data.tar.gz: b36c2ababc702d919e1aa34415d2523c8e365b058c94746ce1ec729d8099bf2f9e2691d3970738786ea705462127f1be1e58dd94a5d1b75fb1525eeac176a4f4
|
data/brine-dsl.gemspec
CHANGED
@@ -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
|
data/lib/brine/rest_steps.rb
CHANGED
@@ -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
|
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
|
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
|
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
|
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.
|
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-
|
11
|
+
date: 2018-08-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cucumber
|