File tree 2 files changed +4
-3
lines changed
lib/puppet/provider/package
spec/unit/provider/package
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change
1
+ # frozen_string_literal: true
1
2
require_relative "../../../puppet/provider/package"
2
3
3
4
Puppet ::Type . type ( :package ) . provide :xbps , :parent => Puppet ::Provider ::Package do
Original file line number Diff line number Diff line change 7
7
@provider = described_class . new ( @resource )
8
8
@resolver = Puppet ::Util
9
9
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" )
13
13
end
14
14
15
15
it { is_expected . to be_installable }
You can’t perform that action at this time.
0 commit comments