rspec_junit 4.0.1 → 4.0.2

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: 06fdf3d6a72c3886b7c8328f8843c85c4a930c73
4
- data.tar.gz: 8f94d45af14532cd99027c96a209ce10c57fcd5c
3
+ metadata.gz: f39d5c33700a088a57a5c3b787382672893a719c
4
+ data.tar.gz: eb31d43d7b9bccc7f2d9adb9feb4a0bb4778f372
5
5
  SHA512:
6
- metadata.gz: 348c340a18efd515a79d1d80f4f296424d16fd18fcacdaa145de3259d1c94563c20341554ccb33707d224a62ddb0cf5dc1488ddc6fb8c15dd0002e6da675816b
7
- data.tar.gz: 3a5b090121dd0218311fe20b6be6f74e204c5fb8e6d053abeb91bdfae46df3fe6cf2852f1c972d5b26b17c9fe229a769b19edd82ba35113a7082572979342e5b
6
+ metadata.gz: 7fa15fe63a2f6d85d534469321fe7a66ded15a21a8f51555701243595260016887614e654becc9e1d1fa081c7aef663418b41b0a19530a847f0ed0f63c1d2d31
7
+ data.tar.gz: 81f0fcafbc0e035424cda4fea83f60532eed21bda81ab0904db2c0276d5e601dd5cf0f7bd2f747692e8ca4a6e58815dcac35540e9a2f572741c4440efc1152f6
@@ -56,9 +56,14 @@ class RSpecJUnit < RSpec::Core::Formatters::BaseFormatter
56
56
  backtrace = RSpec.configuration.backtrace_formatter.format_backtrace exception.backtrace
57
57
  backtrace = "\n#{backtrace.join("\n")}"
58
58
  end
59
- sauce_test_link = example.metadata[:sauce_test_link]
60
59
 
61
- result = "\n#{exception.class.name}\n#{exception.message}"
60
+ exception_message = exception.message || ''
61
+ sauce_test_link = example.metadata[:sauce_test_link]
62
+ # avoid duplicating the link if the message already contains it
63
+ # this happens when SauceDocumentation is used.
64
+ sauce_test_link = nil if exception_message.include?(sauce_test_link)
65
+
66
+ result = "\n#{exception.class.name}\n#{exception_message}"
62
67
  result += "\n#{sauce_test_link}\n" if sauce_test_link
63
68
  "#{result}#{backtrace}"
64
69
  end
@@ -1,4 +1,4 @@
1
1
  module RspecJunit
2
- VERSION = '4.0.1' unless defined? ::RspecJunit::VERSION
3
- DATE = '2015-10-16' unless defined? ::RspecJunit::DATE
2
+ VERSION = '4.0.2' unless defined? ::RspecJunit::VERSION
3
+ DATE = '2015-10-19' 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.1
4
+ version: 4.0.2
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-10-16 00:00:00.000000000 Z
12
+ date: 2015-10-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec