We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent d2b2d80 commit 9d1ba7eCopy full SHA for 9d1ba7e
spec/unit/provider/package/openbsd_spec.rb
@@ -12,7 +12,7 @@
12
it { is_expected.to be_uninstall_options }
13
end
14
15
- before (:each) do
+ before :each do
16
# Stub some provider methods to avoid needing the actual software
17
# installed, so we can test on whatever platform we want.
18
allow(described_class).to receive(:command).with(:pkginfo).and_return('/bin/pkg_info')
@@ -24,7 +24,7 @@
24
25
context "#instances" do
26
it "should return nil if execution failed" do
27
- expect(described_class).to receive(:execpipe).and_raise(Puppet::ExecutionFailure, 'wawawa')
+ expect(described_class).to receive(:pkgadd).and_raise(Puppet::ExecutionFailure, 'wawawa')
28
expect(described_class.instances).to be_nil
29
30
0 commit comments