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 +4 -4
- data/lib/rspec_junit/rspec_junit.rb +7 -2
- data/lib/rspec_junit/version.rb +2 -2
- 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: f39d5c33700a088a57a5c3b787382672893a719c
|
4
|
+
data.tar.gz: eb31d43d7b9bccc7f2d9adb9feb4a0bb4778f372
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
-
|
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
|
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: 4.0.
|
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-
|
12
|
+
date: 2015-10-19 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rspec
|