Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 8d3b854

Browse files
committedNov 18, 2023··
(fixup) fix tests
1 parent 390ef37 commit 8d3b854

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎lib/puppet/provider/package/xbps.rb

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# frozen_string_literal: true
12
require_relative "../../../puppet/provider/package"
23

34
Puppet::Type.type(:package).provide :xbps, :parent => Puppet::Provider::Package do

‎spec/unit/provider/package/xbps_spec.rb

+3-3
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,9 @@
77
@provider = described_class.new(@resource)
88
@resolver = Puppet::Util
99

10-
allow(@resolver).to receive(:which).with("/usr/bin/xbps-install").and_return("/usr/bin/xbps-install")
11-
allow(@resolver).to receive(:which).with("/usr/bin/xbps-remove").and_return("/usr/bin/xbps-remove")
12-
allow(@resolver).to receive(:which).with("/usr/bin/xbps-query").and_return("/usr/bin/xbps-query")
10+
allow(described_class).to receive(:which).with("/usr/bin/xbps-install").and_return("/usr/bin/xbps-install")
11+
allow(described_class).to receive(:which).with("/usr/bin/xbps-remove").and_return("/usr/bin/xbps-remove")
12+
allow(described_class).to receive(:which).with("/usr/bin/xbps-query").and_return("/usr/bin/xbps-query")
1313
end
1414

1515
it { is_expected.to be_installable }

0 commit comments

Comments
 (0)
Please sign in to comment.