haiti 0.2.1 → 0.2.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/lib/haiti/step_definitions.rb +3 -4
- data/lib/haiti/version.rb +1 -1
- data/test/Gemfile.lock +1 -1
- data/test/features/then_stream_is.feature +26 -10
- 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: ffac12cf200ac546022294a1f1c7b5c381f22453
|
4
|
+
data.tar.gz: fac9dbbedb2122ad5cbec86df5bd687acc06b4c0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6afbea3dc05c958bf9b8dc31363ffe693cd7ee2fee9b96ed2c53dceff3addc0b205a118bf540712f00f1546d57e402aba43a1313fb61b109399d872a88cdb89b
|
7
|
+
data.tar.gz: 255fa0241f3c0a427bf9ebc14e900f600c737ea449a5a01be2e9ae8705e36c65bfbed0002fb3281d878882e55054513cabdcd551b1f768ae07023246046ac8ab
|
data/.travis.yml
CHANGED
@@ -33,10 +33,8 @@ define_steps.call(
|
|
33
33
|
) { |stream_name| expect(@last_executed.send(stream_name).chomp).to_not be_empty }
|
34
34
|
|
35
35
|
define_steps.call(
|
36
|
-
/^(stderr|stdout) includes "([^"]*?)"
|
37
|
-
|
38
|
-
|
39
|
-
define_steps.call(
|
36
|
+
/^(stderr|stdout) includes "([^"]*?)"$/,
|
37
|
+
/^(stderr|stdout) includes '([^']*?)'$/,
|
40
38
|
/^(stderr|stdout) includes:$/
|
41
39
|
) { |stream_name, content| expect(@last_executed.send(stream_name)).to include eval_curlies(content) }
|
42
40
|
|
@@ -46,6 +44,7 @@ define_steps.call(
|
|
46
44
|
|
47
45
|
define_steps.call(
|
48
46
|
/^(stderr|stdout) does not include "([^"]*?)"$/,
|
47
|
+
/^(stderr|stdout) does not include '([^']*?)'$/,
|
49
48
|
/^(stderr|stdout) does not include:$/
|
50
49
|
) { |stream_name, content| expect(@last_executed.send(stream_name)).to_not include eval_curlies(content) }
|
51
50
|
|
data/lib/haiti/version.rb
CHANGED
data/test/Gemfile.lock
CHANGED
@@ -53,9 +53,13 @@ Feature:
|
|
53
53
|
Then stderr is not empty
|
54
54
|
|
55
55
|
# stdout includes
|
56
|
-
Scenario: stdout includes inline
|
57
|
-
When I run "ruby -e '$stdout.puts
|
58
|
-
Then stdout includes "b"
|
56
|
+
Scenario: stdout includes inline, double quotes
|
57
|
+
When I run "ruby -e '$stdout.puts [97, 39, 98, 39, 99].map(&:chr).join'"
|
58
|
+
Then stdout includes "'b'"
|
59
|
+
|
60
|
+
Scenario: stdout includes inline, single quotes
|
61
|
+
When I run "ruby -e '$stdout.puts [97, 34, 98, 34, 99].map(&:chr).join'"
|
62
|
+
Then stdout includes '"b"'
|
59
63
|
|
60
64
|
Scenario: stdout includes multiline
|
61
65
|
When I run "ruby -e '5.times { |i| $stdout.puts i }'"
|
@@ -66,9 +70,13 @@ Feature:
|
|
66
70
|
"""
|
67
71
|
|
68
72
|
# stderr includes
|
69
|
-
Scenario: stderr includes inline
|
70
|
-
When I run "ruby -e '$stderr.puts
|
71
|
-
Then stderr includes "b"
|
73
|
+
Scenario: stderr includes inline, double quotes
|
74
|
+
When I run "ruby -e '$stderr.puts [97, 39, 98, 39, 99].map(&:chr).join'"
|
75
|
+
Then stderr includes "'b'"
|
76
|
+
|
77
|
+
Scenario: stderr includes inline, single quotes
|
78
|
+
When I run "ruby -e '$stderr.puts [97, 34, 98, 34, 99].map(&:chr).join'"
|
79
|
+
Then stderr includes '"b"'
|
72
80
|
|
73
81
|
Scenario: stderr includes multiline
|
74
82
|
When I run "ruby -e '5.times { |i| $stderr.puts i }'"
|
@@ -79,9 +87,13 @@ Feature:
|
|
79
87
|
"""
|
80
88
|
|
81
89
|
# stdout does not include
|
82
|
-
Scenario: stdout does not include, inline
|
90
|
+
Scenario: stdout does not include, inline, double quotes
|
83
91
|
When I run "ruby -e '$stdout.puts %(abc)'"
|
84
|
-
Then stdout does not include "
|
92
|
+
Then stdout does not include "'b'"
|
93
|
+
|
94
|
+
Scenario: stdout does not include, inline, single quotes
|
95
|
+
When I run "ruby -e '$stdout.puts %(abc)'"
|
96
|
+
Then stdout does not include '"b"'
|
85
97
|
|
86
98
|
Scenario: stdout does not include multiline
|
87
99
|
When I run "ruby -e '5.times { |i| $stdout.puts i }'"
|
@@ -92,9 +104,13 @@ Feature:
|
|
92
104
|
"""
|
93
105
|
|
94
106
|
# stderr does not include
|
95
|
-
Scenario: stderr does not include inline
|
107
|
+
Scenario: stderr does not include inline, double quotes
|
108
|
+
When I run "ruby -e '$stderr.puts %(abc)'"
|
109
|
+
Then stderr does not include "'b'"
|
110
|
+
|
111
|
+
Scenario: stderr does not include inline, single quotes
|
96
112
|
When I run "ruby -e '$stderr.puts %(abc)'"
|
97
|
-
Then stderr does not include "
|
113
|
+
Then stderr does not include '"b"'
|
98
114
|
|
99
115
|
Scenario: stderr does not include multiline
|
100
116
|
When I run "ruby -e '5.times { |i| $stderr.puts i }'"
|