Skip to content

Commit

Permalink
(fixup) fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
Animeshz committed Nov 18, 2023
1 parent 390ef37 commit 8d3b854
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/puppet/provider/package/xbps.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
# frozen_string_literal: true
require_relative "../../../puppet/provider/package"

Puppet::Type.type(:package).provide :xbps, :parent => Puppet::Provider::Package do
Expand Down
6 changes: 3 additions & 3 deletions spec/unit/provider/package/xbps_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
@provider = described_class.new(@resource)
@resolver = Puppet::Util

allow(@resolver).to receive(:which).with("/usr/bin/xbps-install").and_return("/usr/bin/xbps-install")
allow(@resolver).to receive(:which).with("/usr/bin/xbps-remove").and_return("/usr/bin/xbps-remove")
allow(@resolver).to receive(:which).with("/usr/bin/xbps-query").and_return("/usr/bin/xbps-query")
allow(described_class).to receive(:which).with("/usr/bin/xbps-install").and_return("/usr/bin/xbps-install")
allow(described_class).to receive(:which).with("/usr/bin/xbps-remove").and_return("/usr/bin/xbps-remove")
allow(described_class).to receive(:which).with("/usr/bin/xbps-query").and_return("/usr/bin/xbps-query")
end

it { is_expected.to be_installable }
Expand Down

0 comments on commit 8d3b854

Please sign in to comment.