rspec_junit 4.0.3 → 4.0.4
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 +3 -2
- data/lib/rspec_junit/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e5ffe7b37dd4b94da356d700ab5a5a176754365c
|
4
|
+
data.tar.gz: fc1d662ed3ff80a6c789681ccb275af30e0454d6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c59ca40883eece2cd2278a537be791700b6d32372b225e9c9adb2ceee0001dac62c0e11a3753d7cadda186e2f7b614322816028ccc7bbb77e99018ea5f65e575
|
7
|
+
data.tar.gz: 1dde20cf45095591294f2476e20c1dc3344f8694e0666d0e1b56cfae5c218b03089406710886100163cccad81d648dd7048a106b29ff1bd273784be152577544
|
@@ -60,9 +60,10 @@ class RSpecJUnit < RSpec::Core::Formatters::BaseFormatter
|
|
60
60
|
# avoid duplicating the link if the message already contains it
|
61
61
|
# this happens when SauceDocumentation is used.
|
62
62
|
sauce_test_link = example.metadata[:sauce_test_link]
|
63
|
-
|
63
|
+
message = exception.message || ''
|
64
|
+
print_link = sauce_test_link && !message.include?(sauce_test_link)
|
64
65
|
|
65
|
-
result = "\n#{exception.class.name}\n#{
|
66
|
+
result = "\n#{exception.class.name}\n#{message}"
|
66
67
|
result += "\n#{sauce_test_link}\n" if print_link
|
67
68
|
"#{result}#{backtrace}"
|
68
69
|
end
|
data/lib/rspec_junit/version.rb
CHANGED