rspec_junit 4.0.2 → 4.0.3
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 +4 -5
- 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: 4984c175240b04aa56a68b88f35390e292461f91
|
4
|
+
data.tar.gz: 2de0d8cea2cb4503a0fd5fbad2aa633ca0e2fac1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4eb403ec6f3174e8c946971772ef8c8af8764d593fa8c8bddc61fd710bf9016915471219f3c43aea3dce0155aef3a2e0953ccf8dffdb34b82a3bde89f2a14505
|
7
|
+
data.tar.gz: 0a6580e6c8e481ea477e7fb39240912e806fd2846d4cf40a356599902c0f98090d4eea93b6249de47037bdb68e9dc00c707c291d6efb8505e9ab365f896ba0c1
|
@@ -57,14 +57,13 @@ class RSpecJUnit < RSpec::Core::Formatters::BaseFormatter
|
|
57
57
|
backtrace = "\n#{backtrace.join("\n")}"
|
58
58
|
end
|
59
59
|
|
60
|
-
exception_message = exception.message || ''
|
61
|
-
sauce_test_link = example.metadata[:sauce_test_link]
|
62
60
|
# avoid duplicating the link if the message already contains it
|
63
61
|
# this happens when SauceDocumentation is used.
|
64
|
-
sauce_test_link
|
62
|
+
sauce_test_link = example.metadata[:sauce_test_link]
|
63
|
+
print_link = sauce_test_link && !exception.message.include?(sauce_test_link)
|
65
64
|
|
66
|
-
result = "\n#{exception.class.name}\n#{
|
67
|
-
result += "\n#{sauce_test_link}\n" if
|
65
|
+
result = "\n#{exception.class.name}\n#{exception.message}"
|
66
|
+
result += "\n#{sauce_test_link}\n" if print_link
|
68
67
|
"#{result}#{backtrace}"
|
69
68
|
end
|
70
69
|
|
data/lib/rspec_junit/version.rb
CHANGED