rspec_junit 3.0.0 → 3.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0e8c08054a0d713c9923eb1efcbd44835e99d1bd
4
- data.tar.gz: 4549415dd031f78f3ea15835ec586f160bbcd153
3
+ metadata.gz: e08b1968cd845a33baec492e4991bd5110a517ad
4
+ data.tar.gz: 547e96c2219632c764c986c74e836685d5a3d64a
5
5
  SHA512:
6
- metadata.gz: f571e6699163d5468bd9e4344d9bb4e329353f3f0036f1592e7329cdd36c04be546f83e154a299fa4652e479a916f2718afb43e19302cd19afab70f876ba5ed3
7
- data.tar.gz: b8845a4aeadc906ac4e1f6a6680a0776b351697853063a83730ff1c8e71cff704c6c07ea7f7445ef36b6adc3fa6921a4433576101c326481736fac0b21a3a090
6
+ metadata.gz: 1e5025caac34fc5670b725c408b47bf4a7c300acebfda19a696a558905f1d21df5532da90e4c9e688d8c454a0ae99cda71195f7d8e802b131c4ec5b5c0f9c715
7
+ data.tar.gz: a19bf0b6814c78bfb0bf00ef40d4b65379c1c0eaf5ceb093242db0e2510ed1514624838f1227f7d3a5036cdf4f524a967ee5249f5333f2fca29df94432ba0579
@@ -35,8 +35,12 @@ class JUnit
35
35
 
36
36
  def failure_details_for(example)
37
37
  exception = example.exception
38
- formatted_backtrace = RSpec::Core::BacktraceFormatter.new.format_backtrace exception.backtrace
39
- exception.nil? ? '' : "#{exception.message}\n#{formatted_backtrace}"
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
@@ -1,3 +1,3 @@
1
1
  module RspecJunit
2
- VERSION = '3.0.0'
2
+ VERSION = '3.0.1'
3
3
  end
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.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-06-18 00:00:00.000000000 Z
12
+ date: 2015-08-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec