fivemat 1.2.0 → 1.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/fivemat.gemspec +1 -1
- data/lib/fivemat/rspec.rb +7 -0
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9349641487e0924084af60468129537311044e74
|
4
|
+
data.tar.gz: b2041a9644d70b97bc3c5d91a4e16df1a0726b4b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7c6c113654615425a1131478b39b97262f8eb15d3ebbc9fd91ce09b3ac97f9ffbc3eef1d70d2d6d0471ab74845d19da739e1efa4d40f0d7a0cf0e3612c4b1510
|
7
|
+
data.tar.gz: 1689d261d1bcd2eb0d260ce1d0477f988af5e04c35d2e9fbb511601a22b7958ae4de6615cbc1b43147f5a0cc3a5861c2a99b02e299f061745be6466ca63494a5
|
data/fivemat.gemspec
CHANGED
data/lib/fivemat/rspec.rb
CHANGED
@@ -8,6 +8,7 @@ module Fivemat
|
|
8
8
|
super
|
9
9
|
@group_level = 0
|
10
10
|
@index_offset = 0
|
11
|
+
@cumulative_failed_examples = []
|
11
12
|
end
|
12
13
|
|
13
14
|
def example_group_started(group)
|
@@ -34,6 +35,7 @@ module Fivemat
|
|
34
35
|
dump_backtrace(example)
|
35
36
|
end
|
36
37
|
@index_offset += failed_examples.size
|
38
|
+
@cumulative_failed_examples += failed_examples
|
37
39
|
failed_examples.clear
|
38
40
|
end
|
39
41
|
end
|
@@ -51,6 +53,11 @@ module Fivemat
|
|
51
53
|
output.puts blue("#{long_padding}Expected pending '#{example.metadata[:execution_result][:pending_message]}' to fail. No Error was raised.")
|
52
54
|
end
|
53
55
|
|
56
|
+
def dump_summary(*)
|
57
|
+
@failed_examples = @cumulative_failed_examples
|
58
|
+
super
|
59
|
+
end
|
60
|
+
|
54
61
|
def start_dump
|
55
62
|
# Skip the call to output.puts in the messiest way possible.
|
56
63
|
self.class.superclass.superclass.instance_method(:start_dump).bind(self).call
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: fivemat
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.2.
|
4
|
+
version: 1.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tim Pope
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2013-03-
|
11
|
+
date: 2013-03-19 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
13
|
description: MiniTest/RSpec/Cucumber formatter that gives each test file its own line
|
14
14
|
of dots
|