rspec-longrun 3.0.0 → 3.0.1

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: 472b8cf58fb419a564a77f0b0c1c5ea9add4fb8de13c25378407fe18e73ef67e
4
- data.tar.gz: 66968a3ba7f16828fe4fc196ac399ecfadd4ff259cade25de557f6807ec97c1d
3
+ metadata.gz: 89a23d856fc7edb643cb64791af510f171b3fbdbf0c4c4a5efcc6b0bddcd7933
4
+ data.tar.gz: a6fbfbe313cd39f32d014e11ab8e56ceac05e7c86c57fb3149db33174567bafe
5
5
  SHA512:
6
- metadata.gz: 3cc28a184fd9951c700dee5beabc43f6111ce21ad313f75d16b726616f99dd1795eb965cd2717ffdaae7c64e6d4c1e1029b5458c290839357f948b9c9b35c81e
7
- data.tar.gz: e343f2590a75d42d82d03ce2162d2d7a92ab7549f71bc210a479abdc1d214db7e8496869639df48f25679a2a351fcc7f83caf2116e1673c74752df4dbfdf2099
6
+ metadata.gz: 744ed06db40dc5714ec469d9f36a6166d8026413fa1051f649cf945119879a2e288dada30ac9917625c34a26c6d8a70240f88de5dcd26e2b01f3f2a2c1136643
7
+ data.tar.gz: d2c395076016ea681c9615daabd0649b0cf5d6bf7fd8d5b93a16f7d772f64f8cfb300cfc9620c67ce5dae4fd84ecb0a59eb86a3404d9b7ba09b02ad4408d7ae4
@@ -18,4 +18,14 @@ RSpec.describe("stepped") do
18
18
  end
19
19
  end
20
20
 
21
+ example "deep fail" do
22
+ step "Level 1" do
23
+ step "Level 2" do
24
+ step "Level 3" do
25
+ expect(1+1).to eq(3)
26
+ end
27
+ end
28
+ end
29
+ end
30
+
21
31
  end
@@ -4,12 +4,13 @@ module RSpec
4
4
 
5
5
  def step(description)
6
6
  rspec_longrun_formatter.step_started(description)
7
+ ok = false
7
8
  begin
8
9
  yield if block_given?
9
10
  rspec_longrun_formatter.step_finished
10
- rescue => e
11
- rspec_longrun_formatter.step_errored(e)
12
- raise e
11
+ ok = true
12
+ ensure
13
+ rspec_longrun_formatter.step_failed unless ok
13
14
  end
14
15
  end
15
16
 
@@ -27,7 +28,7 @@ module RSpec
27
28
  def step_finished
28
29
  end
29
30
 
30
- def step_errored(_e)
31
+ def step_failed
31
32
  end
32
33
 
33
34
  end
@@ -52,7 +52,7 @@ module RSpec
52
52
  end_block(wrap("✓", :success))
53
53
  end
54
54
 
55
- def step_errored(e)
55
+ def step_failed
56
56
  end_block(wrap("✗", :failure))
57
57
  end
58
58
 
@@ -1,5 +1,5 @@
1
1
  module RSpec
2
2
  module Longrun
3
- VERSION = "3.0.0"
3
+ VERSION = "3.0.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-longrun
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.0
4
+ version: 3.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Williams