rspec-puppet 2.6.6 → 2.6.7

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: 9090f6434c25d6afd4341586dab7f2c04a281cce
4
- data.tar.gz: 29c6eedd09c990f1cf2b7bc9c398b224e2931f6a
3
+ metadata.gz: f566b2171b96404fe94df6cbc1453c1f06ab9963
4
+ data.tar.gz: 7eb940e7fea32c49cedc972b20f77a5bbd2010c4
5
5
  SHA512:
6
- metadata.gz: 3d9f9db94e36ac66d643943e50fbd5fda038c7be688a764e7090109cf5ad7759c54f31471e24f323dac15c6f7141b65e7b0a522d20daa05b54934ead96f712e1
7
- data.tar.gz: 5763b8a546bb6af4ef4198ff7d136c63328483b95b6ecf9f3a35e1f64261a707ee7e0f6009c3f35e23b6a5b5fc4b637c93fbc800c52b5930c5d6b8a6ce72ffae
6
+ metadata.gz: b4dd3865ee6571c5ad0983c7d723862acfba73d23d47789bbcac5e60d8a026ee234bbec04460011cc62c5d2a045e6c3292c222ed057e8353b1732bcb450dabc4
7
+ data.tar.gz: e5b070746880deb423cd1f00f29f4e9e27ca76eca529327ea8f228a77781ef9e534138d816fc0a097ceaf77ca432b7cacf2985594716c33c6024e8856e4492aa
@@ -2,6 +2,13 @@
2
2
  All notable changes to this project will be documented in this file. This
3
3
  project adheres to [Semantic Versioning](http://semver.org/).
4
4
 
5
+ ## [2.6.7]
6
+
7
+ ### Fixed
8
+
9
+ * An issue where the optional minimum resource coverage check would throw an
10
+ exception when the coverage wasn't 100%.
11
+
5
12
  ## [2.6.6]
6
13
 
7
14
  ### Fixed
@@ -9,6 +9,18 @@ class RSpec::Puppet::EventListener
9
9
  end
10
10
  end
11
11
 
12
+ def self.example_passed(example)
13
+ @rspec_puppet_example = false
14
+ end
15
+
16
+ def self.example_pending(example)
17
+ @rspec_puppet_example = false
18
+ end
19
+
20
+ def self.example_failed(example)
21
+ @rspec_puppet_example = false
22
+ end
23
+
12
24
  def self.rspec_puppet_example?
13
25
  @rspec_puppet_example || false
14
26
  end
@@ -22,7 +34,7 @@ class RSpec::Puppet::EventListener
22
34
  end
23
35
  end
24
36
 
25
- RSpec.configuration.reporter.register_listener(RSpec::Puppet::EventListener, :example_started)
37
+ RSpec.configuration.reporter.register_listener(RSpec::Puppet::EventListener, :example_started, :example_pending, :example_passed, :example_failed)
26
38
 
27
39
  module Puppet
28
40
  # Allow rspec-puppet to prevent Puppet::Type from automatically picking
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-puppet
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.6.6
4
+ version: 2.6.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tim Sharpe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2017-08-07 00:00:00.000000000 Z
11
+ date: 2017-08-08 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec