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 +4 -4
- data/onceover.gemspec +1 -1
- data/templates/spec_helper.rb.erb +1 -11
- data/templates/test_spec.rb.erb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4262b6cc1cabc3a26101c7617d4c697fd149b0d1b03ecb93576fa6044b32497e
|
4
|
+
data.tar.gz: df7f1e1010b33a82b68edb5b7e4f44eee3452077a9d84e4cec0433b8d702a6ee
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2eed34c2baadc64f072db8659d16b0eed8ae6029411f6e7e6e97977dce4ce7ae8977f758e233814a20aaeee1e1083c26971ea61f984a9d204f7f2ce14d707ba5
|
7
|
+
data.tar.gz: 8c68f464f140b1be9a257593f48cf92540c4c87545761b626f65e635de5e88d901957cb5ea1be4a6bcb228125c1756af3f111e287181eb5278208dff7e98455a
|
data/onceover.gemspec
CHANGED
@@ -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.
|
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 :
|
2
|
+
c.mock_with :rspec
|
13
3
|
end
|
14
4
|
|
15
5
|
require 'puppetlabs_spec_helper/module_spec_helper'
|
data/templates/test_spec.rb.erb
CHANGED
@@ -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.
|
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.
|
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-
|
11
|
+
date: 2019-10-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|