Skip to content

Commit 97965b9

Browse files
committed
fix
1 parent 149f2b8 commit 97965b9

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

spec/unit/provider/package/openbsd_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
before :each do
1818
# Stub some provider methods to avoid needing the actual software
1919
# installed, so we can test on whatever platform we want.
20-
allow(Puppet::Util).to receive(:which).with("pkg_info").and_return("/usr/sbin/pkg_info")
20+
#allow(Puppet::Util).to receive(:which).with("pkg_info").and_return("/usr/sbin/pkg_info")
2121
allow(described_class).to receive(:which).with("pkg_info").and_return("/usr/sbin/pkg_info")
2222
allow(described_class).to receive(:command).with(:pkginfo).and_return('/usr/sbin/pkg_info')
2323
allow(described_class).to receive(:command).with(:pkgadd).and_return('/usr/sbin/pkg_add')
@@ -26,7 +26,7 @@
2626

2727
context "#instances" do
2828
it "should return nil if execution failed" do
29-
allow(described_class).to receive(:command).with(:pkginfo).and_return('/usr/sbin/pkg_info')
29+
allow(provider).to receive(:command).with(:pkginfo).and_return('/usr/sbin/pkg_info')
3030
expect(provider).to receive(:pkginfo).and_raise(Puppet::ExecutionFailure, 'wawawa')
3131
#expect(provider).to receive(:pkginfo).with(['-a', '-z'])
3232
expect(described_class.instances).to be_nil

0 commit comments

Comments
 (0)