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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 89a23d856fc7edb643cb64791af510f171b3fbdbf0c4c4a5efcc6b0bddcd7933
4
- data.tar.gz: a6fbfbe313cd39f32d014e11ab8e56ceac05e7c86c57fb3149db33174567bafe
3
+ metadata.gz: 9cc4495b45e5bc8e144ebc830595ea4332e12f2cb266d111dc9b90bbc0d87880
4
+ data.tar.gz: d31b411927d0e2396c6c5d29ce5d8e2bb17ac4352d1f1eee3a443eeb40bd049e
5
5
  SHA512:
6
- metadata.gz: 744ed06db40dc5714ec469d9f36a6166d8026413fa1051f649cf945119879a2e288dada30ac9917625c34a26c6d8a70240f88de5dcd26e2b01f3f2a2c1136643
7
- data.tar.gz: d2c395076016ea681c9615daabd0649b0cf5d6bf7fd8d5b93a16f7d772f64f8cfb300cfc9620c67ce5dae4fd84ecb0a59eb86a3404d9b7ba09b02ad4408d7ae4
6
+ metadata.gz: 5a679a9ee35fb81f25271d9659935653dbcaf19f27326548dd8a7373b238ad6a057936b9164c82dee17e3b19a309b6db1eae5ce56fda0d33efdb10767be8617b
7
+ data.tar.gz: 114f1f0bd4b011e32472abe8be316fcdf8acec6332f0bcb1cb07bba26b172f133fc8cdc6e0bae931de0d3792ca3d4285e64be18b7aebae7ea733b685becd84d9
@@ -14,6 +14,11 @@ module RSpec
14
14
  end
15
15
  end
16
16
 
17
+ def xstep(description)
18
+ rspec_longrun_formatter.step_started(description)
19
+ rspec_longrun_formatter.step_pending
20
+ end
21
+
17
22
  private
18
23
 
19
24
  def rspec_longrun_formatter
@@ -56,6 +56,10 @@ module RSpec
56
56
  end_block(wrap("✗", :failure))
57
57
  end
58
58
 
59
+ def step_pending
60
+ end_block(wrap("PENDING", :pending))
61
+ end
62
+
59
63
  private
60
64
 
61
65
  def wrap(*args)
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Longrun
3
- VERSION = "3.0.1"
3
+ VERSION = "3.1.0"
4
4
  end
5
5
  end
@@ -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.1
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: 2018-06-12 00:00:00.000000000 Z
11
+ date: 2019-09-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core