rspec_junit 4.0.0 → 4.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
  SHA1:
3
- metadata.gz: e43ef7ad781d8ba058f77fbced8755906da35d65
4
- data.tar.gz: 03614b03d2423135aea6846c73e35d5d88adc733
3
+ metadata.gz: 06fdf3d6a72c3886b7c8328f8843c85c4a930c73
4
+ data.tar.gz: 8f94d45af14532cd99027c96a209ce10c57fcd5c
5
5
  SHA512:
6
- metadata.gz: f82b82195be87fbc8bc7d437cadd9285a6b2f288526c0c5e33783bb12c73302b74bb7616fbbf0956b3ebd2009f3b69e2ca597d05867ef8c4146367789821d3e3
7
- data.tar.gz: ecc2a0602bbbff9437d1e419cea03a1310e927bc4a9f4ff8bda4c277e52ef6792bd4dd4dc25069d6271a8baa55209c0dce7ef2f92390f44444dde4eccc28f105
6
+ metadata.gz: 348c340a18efd515a79d1d80f4f296424d16fd18fcacdaa145de3259d1c94563c20341554ccb33707d224a62ddb0cf5dc1488ddc6fb8c15dd0002e6da675816b
7
+ data.tar.gz: 3a5b090121dd0218311fe20b6be6f74e204c5fb8e6d053abeb91bdfae46df3fe6cf2852f1c972d5b26b17c9fe229a769b19edd82ba35113a7082572979342e5b
@@ -52,14 +52,15 @@ class RSpecJUnit < RSpec::Core::Formatters::BaseFormatter
52
52
  return '' if exception.nil?
53
53
  backtrace = ''
54
54
  if exception.backtrace # may be nil
55
- backtrace = RSpec::Core::BacktraceFormatter.new.format_backtrace exception.backtrace
55
+ # Use the configured backtrace formatter instead of creating a new one.
56
+ backtrace = RSpec.configuration.backtrace_formatter.format_backtrace exception.backtrace
56
57
  backtrace = "\n#{backtrace.join("\n")}"
57
58
  end
58
59
  sauce_test_link = example.metadata[:sauce_test_link]
59
60
 
60
- result = "\n#{exception.class.name}\n#{exception.message}#{backtrace}"
61
- result += "\n\n#{sauce_test_link}" if sauce_test_link
62
- result
61
+ result = "\n#{exception.class.name}\n#{exception.message}"
62
+ result += "\n#{sauce_test_link}\n" if sauce_test_link
63
+ "#{result}#{backtrace}"
63
64
  end
64
65
 
65
66
  # utility methods
@@ -1,4 +1,4 @@
1
1
  module RspecJunit
2
- VERSION = '4.0.0' unless defined? ::RspecJunit::VERSION
2
+ VERSION = '4.0.1' unless defined? ::RspecJunit::VERSION
3
3
  DATE = '2015-10-16' unless defined? ::RspecJunit::DATE
4
4
  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: 4.0.0
4
+ version: 4.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Ritmeyer