rspec-longrun 3.0.1 → 3.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/rspec/longrun/dsl.rb +5 -0
- data/lib/rspec/longrun/formatter.rb +4 -0
- data/lib/rspec/longrun/version.rb +1 -1
- data/spec/rspec/longrun/formatter_spec.rb +28 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9cc4495b45e5bc8e144ebc830595ea4332e12f2cb266d111dc9b90bbc0d87880
|
4
|
+
data.tar.gz: d31b411927d0e2396c6c5d29ce5d8e2bb17ac4352d1f1eee3a443eeb40bd049e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 5a679a9ee35fb81f25271d9659935653dbcaf19f27326548dd8a7373b238ad6a057936b9164c82dee17e3b19a309b6db1eae5ce56fda0d33efdb10767be8617b
|
7
|
+
data.tar.gz: 114f1f0bd4b011e32472abe8be316fcdf8acec6332f0bcb1cb07bba26b172f133fc8cdc6e0bae931de0d3792ca3d4285e64be18b7aebae7ea733b685becd84d9
|
data/lib/rspec/longrun/dsl.rb
CHANGED
@@ -44,6 +44,11 @@ describe RSpec::Longrun::Formatter do
|
|
44
44
|
formatter.step_finished
|
45
45
|
end
|
46
46
|
|
47
|
+
def xstep(desc)
|
48
|
+
formatter.step_started(desc)
|
49
|
+
formatter.step_pending
|
50
|
+
end
|
51
|
+
|
47
52
|
context "given an empty example group" do
|
48
53
|
|
49
54
|
before do
|
@@ -139,4 +144,27 @@ describe RSpec::Longrun::Formatter do
|
|
139
144
|
|
140
145
|
end
|
141
146
|
|
147
|
+
context 'with xsteps' do
|
148
|
+
|
149
|
+
before do
|
150
|
+
example_group "suite" do
|
151
|
+
example "has xsteps", :passed do
|
152
|
+
xstep "Collect underpants" do
|
153
|
+
end
|
154
|
+
end
|
155
|
+
end
|
156
|
+
end
|
157
|
+
|
158
|
+
it "outputs steps" do
|
159
|
+
expect(normalized_output).to eql(<<~EOF)
|
160
|
+
suite {
|
161
|
+
has xsteps {
|
162
|
+
Collect underpants PENDING (N.NNs)
|
163
|
+
} OK (N.NNs)
|
164
|
+
} (N.NNs)
|
165
|
+
EOF
|
166
|
+
end
|
167
|
+
|
168
|
+
end
|
169
|
+
|
142
170
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec-longrun
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0
|
4
|
+
version: 3.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Mike Williams
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-09-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec-core
|