rspec_junit_formatter_bitbucket 0.2.0.pre.181 → 0.2.0.pre.182

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
  SHA256:
3
- metadata.gz: 3a679c53d81e0c452517f3c1703df9f4f9b9f9a19d8a3ef01cafbb3f9f726be9
4
- data.tar.gz: 169c8b283ec409d92015d95293d50e8eba5205e6d97dc226daa1820dd1dfa7c4
3
+ metadata.gz: d8d02b211c65b7d2680e58d6ffd6c50dc0c28cabfdcc1f26a282818358e73548
4
+ data.tar.gz: 4b2c4a3348579030e2860d3a8947ec1aa7a2064b274109c0bd0f1eb8a71e12e4
5
5
  SHA512:
6
- metadata.gz: 5396b2a14f20354f47c9ff2c3b13d40fdc54483e887a1fbcd8a86d3ac54e6eb33971d9d926270db1dfe1e9c28162a34db07a571a9260744877103b29009f6eaf
7
- data.tar.gz: ad68d4fb97c4170bd370c88097d4c4b2c3dcfaa5d8416b7d6b850a43ff3e348bb389aefd3a5573b459fab8936a35adeb5b35106c0468c80df975aa006020c3ce
6
+ metadata.gz: 12312e81cf57b7ace133e8716a6a586345d708d275d7c22b2487a2b1ed43c7c9e661b3795ad46ded13d5fa735c81efdee19f447ca036773ddbc58a4d90140d8d
7
+ data.tar.gz: 4f63b527ec95f3a1d996ea3a956a355661c041743e847a101d69cff386c926537f93b831f1c02e771fd4a61eefadfbad8f62f7104cbf7bdbd94c122d7c87d0eb
@@ -66,10 +66,7 @@ module RspecJunitFormatterBitbucket
66
66
 
67
67
  def dump_failed(example)
68
68
  dump_example(example) do
69
- @output << %(<failure)
70
- @output << %( message="#{Format.escape(@test.failure_message_for(example))}")
71
- @output << %( type="#{Format.escape(@test.failure_type_for(example))}")
72
- @output << %(>)
69
+ @output << %(\n<failure #{rm_char_nw_line(failure_attr(example))}>)
73
70
  @output << Format.escape(@test.failure_for(example))
74
71
  @output << %(</failure>)
75
72
  end
@@ -91,8 +88,15 @@ module RspecJunitFormatterBitbucket
91
88
  TESTCASE
92
89
  end
93
90
 
91
+ def failure_attr(example)
92
+ <<~FAILURE
93
+ message="#{Format.escape(@test.failure_message_for(example))}"
94
+ type="#{Format.escape(@test.failure_type_for(example))}"
95
+ FAILURE
96
+ end
97
+
94
98
  def rm_char_nw_line(txt)
95
- txt.gsub("\n", ' ').gsub("\r", '')
99
+ txt.gsub("\n", ' ').gsub("\r", '').chomp(' ')
96
100
  end
97
101
 
98
102
  def dump_output(example)
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec_junit_formatter_bitbucket
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0.pre.181
4
+ version: 0.2.0.pre.182
5
5
  platform: ruby
6
6
  authors:
7
7
  - VAILLANT Jeremy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-05-24 00:00:00.000000000 Z
11
+ date: 2019-05-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec-core