learn-test 1.2.2 → 1.2.21

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: e785b595592ff160e983654cd707d75c89458af6
4
- data.tar.gz: b7a9641cc64c869421ce7b46a4b81b092d505d6b
3
+ metadata.gz: d19200de7476d7e20ad8d5264e569532226c853d
4
+ data.tar.gz: 6f64fc4e55e79a4ba86fb50ca838e053b799a22b
5
5
  SHA512:
6
- metadata.gz: bb98c2c65ac269b64b024180fe03ad63d3bd587d4d149dff36c67d8a90c197808d414622c89ee8d6a2e7a726c8db546b68c59b8f0ec6d032cb6f1efc97ff06c1
7
- data.tar.gz: fb601c4d6f1a1e0096731ecd1b2b9c144889ef2c4552786aed99e38ec3c83bb5f1b9a8e1664d7d88887dda13dbad3180f08111f781409cd605fa014de7a40eb6
6
+ metadata.gz: c9b269a3cc397683274e70eb858c5dc8db5d6268ad00b0e881854e989b2445c56856517ca2f3c81e23a72d372f36eefac8f4fe8bc8f29ec96e33b96c2229dded
7
+ data.tar.gz: b11ac5893b9c0d3db5d8c8aa6528ba8b5745f81cb893000c4897affdb7521bd14ac7076bba4653e8bf2b5feaf91f69acbf487baec38754bafb1f28b87e2d5e1a
@@ -86,16 +86,16 @@ module LearnTest
86
86
  duration: parsed_output ? parsed_output[:summary][:duration] : nil
87
87
  }]
88
88
  },
89
- examples: parsed_output ? parsed_output[:summary][:example_count] : nil,
90
- passing_count: parsed_output ? parsed_output[:summary][:example_count] - parsed_output[:summary][:failure_count] - parsed_output[:summary][:pending_count] : nil,
91
- pending_count: parsed_output ? parsed_output[:summary][:pending_count] : nil,
92
- failure_count: parsed_output ? parsed_output[:summary][:failure_count] : nil,
89
+ examples: parsed_output ? parsed_output[:summary][:example_count] : 1,
90
+ passing_count: parsed_output ? parsed_output[:summary][:example_count] - parsed_output[:summary][:failure_count] - parsed_output[:summary][:pending_count] : 0,
91
+ pending_count: parsed_output ? parsed_output[:summary][:pending_count] : 0,
92
+ failure_count: parsed_output ? parsed_output[:summary][:failure_count] : 1,
93
93
  failure_descriptions: if parsed_output
94
94
  parsed_output[:examples].select do |example|
95
95
  example[:status] == "failed"
96
96
  end.map { |ex| ex[:full_description] }.join(";")
97
97
  else
98
- nil
98
+ 'A syntax error prevented RSpec from running.'
99
99
  end
100
100
  })
101
101
  end
@@ -1,3 +1,3 @@
1
1
  module LearnTest
2
- VERSION = '1.2.2'
2
+ VERSION = '1.2.21'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: learn-test
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.2
4
+ version: 1.2.21
5
5
  platform: ruby
6
6
  authors:
7
7
  - Flatiron School
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-06-05 00:00:00.000000000 Z
11
+ date: 2015-06-09 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler