rspec_junit 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/lib/rspec_junit/junit.rb +6 -2
- data/lib/rspec_junit/version.rb +1 -1
- 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: e08b1968cd845a33baec492e4991bd5110a517ad
|
4
|
+
data.tar.gz: 547e96c2219632c764c986c74e836685d5a3d64a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1e5025caac34fc5670b725c408b47bf4a7c300acebfda19a696a558905f1d21df5532da90e4c9e688d8c454a0ae99cda71195f7d8e802b131c4ec5b5c0f9c715
|
7
|
+
data.tar.gz: a19bf0b6814c78bfb0bf00ef40d4b65379c1c0eaf5ceb093242db0e2510ed1514624838f1227f7d3a5036cdf4f524a967ee5249f5333f2fca29df94432ba0579
|
data/lib/rspec_junit/junit.rb
CHANGED
@@ -35,8 +35,12 @@ class JUnit
|
|
35
35
|
|
36
36
|
def failure_details_for(example)
|
37
37
|
exception = example.exception
|
38
|
-
|
39
|
-
|
38
|
+
exception_backtrace = exception.backtrace
|
39
|
+
formatted_backtrace = ''
|
40
|
+
if exception_backtrace # may be nil
|
41
|
+
formatted_backtrace = "\n#{RSpec::Core::BacktraceFormatter.new.format_backtrace exception_backtrace}"
|
42
|
+
end
|
43
|
+
exception.nil? ? '' : "#{exception.message}#{formatted_backtrace}"
|
40
44
|
end
|
41
45
|
|
42
46
|
# utility methods
|
data/lib/rspec_junit/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rspec_junit
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.0.
|
4
|
+
version: 3.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Nat Ritmeyer
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-08-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|