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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 10371ed84abf4f0ade0f170635120792cce134bb
4
- data.tar.gz: 8e341f595bd355a9259146eb92e7456fb3c42f4b
3
+ metadata.gz: ffac12cf200ac546022294a1f1c7b5c381f22453
4
+ data.tar.gz: fac9dbbedb2122ad5cbec86df5bd687acc06b4c0
5
5
  SHA512:
6
- metadata.gz: 0c720d9b289b04d67d778fb444a96a19f3a067ca23410d76bb00842d6407b21f1954f3dd5389bb7fc18bc9851c36dabddafbc6815fcf6af31dcc5d3893766a36
7
- data.tar.gz: f7008adf49bdb3967482e03418d0344abb9464aae38d6df3e4cde0e625bb9738c237a529cd0b7268fa80c593e51f3be8647f61a5ddb243e3b4bbdb150b2044ef
6
+ metadata.gz: 6afbea3dc05c958bf9b8dc31363ffe693cd7ee2fee9b96ed2c53dceff3addc0b205a118bf540712f00f1546d57e402aba43a1313fb61b109399d872a88cdb89b
7
+ data.tar.gz: 255fa0241f3c0a427bf9ebc14e900f600c737ea449a5a01be2e9ae8705e36c65bfbed0002fb3281d878882e55054513cabdcd551b1f768ae07023246046ac8ab
@@ -5,4 +5,5 @@ rvm:
5
5
  - 1.9.3
6
6
  - 2.0.0
7
7
  - 2.1.2
8
+ - 2.2.2
8
9
  - rbx-2.2.10
@@ -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
- ) { |stream_name, content| expect(@last_executed.send(stream_name)).to include eval_curlies(content) }
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
 
@@ -1,3 +1,3 @@
1
1
  module Haiti
2
- VERSION = '0.2.1'
2
+ VERSION = '0.2.2'
3
3
  end
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: ..
3
3
  specs:
4
- haiti (0.2.1)
4
+ haiti (0.2.2)
5
5
  cucumber (>= 1.0, < 3.0)
6
6
  rspec (~> 3.0)
7
7
 
@@ -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 %(abc)'"
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 %(abc)'"
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 "z"
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 "z"
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 }'"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: haiti
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Josh Cheek