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 +4 -4
- data/examples/stepped_spec.rb +10 -0
- data/lib/rspec/longrun/dsl.rb +5 -4
- data/lib/rspec/longrun/formatter.rb +1 -1
- data/lib/rspec/longrun/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 89a23d856fc7edb643cb64791af510f171b3fbdbf0c4c4a5efcc6b0bddcd7933
|
4
|
+
data.tar.gz: a6fbfbe313cd39f32d014e11ab8e56ceac05e7c86c57fb3149db33174567bafe
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 744ed06db40dc5714ec469d9f36a6166d8026413fa1051f649cf945119879a2e288dada30ac9917625c34a26c6d8a70240f88de5dcd26e2b01f3f2a2c1136643
|
7
|
+
data.tar.gz: d2c395076016ea681c9615daabd0649b0cf5d6bf7fd8d5b93a16f7d772f64f8cfb300cfc9620c67ce5dae4fd84ecb0a59eb86a3404d9b7ba09b02ad4408d7ae4
|
data/examples/stepped_spec.rb
CHANGED
data/lib/rspec/longrun/dsl.rb
CHANGED
@@ -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
|
-
|
11
|
-
|
12
|
-
|
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
|
31
|
+
def step_failed
|
31
32
|
end
|
32
33
|
|
33
34
|
end
|