onceover 3.14.1 → 3.15.0

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: 0fc8f5328e601e4a0cc55f358d2afec89e212bb655c95dd458435ec082cf4dcc
4
- data.tar.gz: b470779fca4e348f5a15f3ed033bc19de361e8eec77388d2eda8d1ed38ce5022
3
+ metadata.gz: 4262b6cc1cabc3a26101c7617d4c697fd149b0d1b03ecb93576fa6044b32497e
4
+ data.tar.gz: df7f1e1010b33a82b68edb5b7e4f44eee3452077a9d84e4cec0433b8d702a6ee
5
5
  SHA512:
6
- metadata.gz: 236786489a55997815844aa4d291163adde6de6163ca6f7cdc927bed441070e4da7acdc8a54b30eb9f21a2d8e79010786c9597096963438eeb378fe204189368
7
- data.tar.gz: dd485c7f78ff5a8bc0ae36350fed8fb98ec7ec0ba9f6f753e38046f76a31bb1067f626189a21890c76001347f4fdf1326393c2d35da6e8e80040b95127a38a81
6
+ metadata.gz: 2eed34c2baadc64f072db8659d16b0eed8ae6029411f6e7e6e97977dce4ce7ae8977f758e233814a20aaeee1e1083c26971ea61f984a9d204f7f2ce14d707ba5
7
+ data.tar.gz: 8c68f464f140b1be9a257593f48cf92540c4c87545761b626f65e635de5e88d901957cb5ea1be4a6bcb228125c1756af3f111e287181eb5278208dff7e98455a
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift File.expand_path("../lib", __FILE__)
4
4
 
5
5
  Gem::Specification.new do |s|
6
6
  s.name = "onceover"
7
- s.version = "3.14.1"
7
+ s.version = "3.15.0"
8
8
  s.authors = ["Dylan Ratcliffe"]
9
9
  s.email = ["dylan.ratcliffe@puppet.com"]
10
10
  s.homepage = "https://github.com/dylanratcliffe/onceover"
@@ -1,15 +1,5 @@
1
- # Yes it's strange that we have to call `RSpec.configure` more than once. The
2
- # reason we are doing this is to silence the incredibly annoying warning:
3
- #
4
- # puppetlabs_spec_helper: defaults `mock_with` to `:mocha`
5
- #
6
- # In order to do this we have configure the
7
- # mocking, THEN require puppetlabs_spec_helper.
8
- #
9
- # Yes, I know. Someone buy me a 🍺 for fixing this.
10
- #
11
1
  RSpec.configure do |c|
12
- c.mock_with :mocha
2
+ c.mock_with :rspec
13
3
  end
14
4
 
15
5
  require 'puppetlabs_spec_helper/module_spec_helper'
@@ -39,7 +39,7 @@ describe "<%= cls.name %>" do
39
39
  # https://github.com/puppetlabs/puppet/blob/master/lib/puppet/util/execution.rb#L191
40
40
  expected_null_file = Puppet::Util::Platform.windows? ? 'NUL' : '/dev/null'
41
41
  unless File.exist? expected_null_file
42
- Puppet::Util::Execution.stubs(:execute).raises(Puppet::ExecutionFailure.new("Onceover caused this"))
42
+ allow(Puppet::Util::Execution).to receive(:execute).and_raise(Puppet::ExecutionFailure.new("Onceover caused this"))
43
43
  end
44
44
  end
45
45
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: onceover
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.14.1
4
+ version: 3.15.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dylan Ratcliffe
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-06-19 00:00:00.000000000 Z
11
+ date: 2019-10-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rake