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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4984c175240b04aa56a68b88f35390e292461f91
4
- data.tar.gz: 2de0d8cea2cb4503a0fd5fbad2aa633ca0e2fac1
3
+ metadata.gz: e5ffe7b37dd4b94da356d700ab5a5a176754365c
4
+ data.tar.gz: fc1d662ed3ff80a6c789681ccb275af30e0454d6
5
5
  SHA512:
6
- metadata.gz: 4eb403ec6f3174e8c946971772ef8c8af8764d593fa8c8bddc61fd710bf9016915471219f3c43aea3dce0155aef3a2e0953ccf8dffdb34b82a3bde89f2a14505
7
- data.tar.gz: 0a6580e6c8e481ea477e7fb39240912e806fd2846d4cf40a356599902c0f98090d4eea93b6249de47037bdb68e9dc00c707c291d6efb8505e9ab365f896ba0c1
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
- print_link = sauce_test_link && !exception.message.include?(sauce_test_link)
63
+ message = exception.message || ''
64
+ print_link = sauce_test_link && !message.include?(sauce_test_link)
64
65
 
65
- result = "\n#{exception.class.name}\n#{exception.message}"
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
@@ -1,4 +1,4 @@
1
1
  module RspecJunit
2
- VERSION = '4.0.3' unless defined? ::RspecJunit::VERSION
2
+ VERSION = '4.0.4' 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.3
4
+ version: 4.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Nat Ritmeyer