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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f39d5c33700a088a57a5c3b787382672893a719c
4
- data.tar.gz: eb31d43d7b9bccc7f2d9adb9feb4a0bb4778f372
3
+ metadata.gz: 4984c175240b04aa56a68b88f35390e292461f91
4
+ data.tar.gz: 2de0d8cea2cb4503a0fd5fbad2aa633ca0e2fac1
5
5
  SHA512:
6
- metadata.gz: 7fa15fe63a2f6d85d534469321fe7a66ded15a21a8f51555701243595260016887614e654becc9e1d1fa081c7aef663418b41b0a19530a847f0ed0f63c1d2d31
7
- data.tar.gz: 81f0fcafbc0e035424cda4fea83f60532eed21bda81ab0904db2c0276d5e601dd5cf0f7bd2f747692e8ca4a6e58815dcac35540e9a2f572741c4440efc1152f6
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 = nil if exception_message.include?(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#{exception_message}"
67
- result += "\n#{sauce_test_link}\n" if sauce_test_link
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
 
@@ -1,4 +1,4 @@
1
1
  module RspecJunit
2
- VERSION = '4.0.2' unless defined? ::RspecJunit::VERSION
2
+ VERSION = '4.0.3' unless defined? ::RspecJunit::VERSION
3
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.2
4
+ version: 4.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Ritmeyer