Skip to content

Commit

Permalink
Expect twice
Browse files Browse the repository at this point in the history
  • Loading branch information
chelnak committed Apr 8, 2022
1 parent 1ce86e9 commit 74d4cd9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion spec/unit/puppet/provider/package/chocolatey_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@
it 'uses install command with held package' do
allow(provider.class).to receive(:compiled_choco?).and_return(true)
expect(Facter).to receive(:value).with('choco_install_path').and_return('c:\dude')
expect(Facter).to receive(:value).with('chocolateyversion').and_return(first_compiled_choco_version)
expect(Facter).to receive(:value).with('chocolateyversion').and_return(first_compiled_choco_version).twice
allow(PuppetX::Chocolatey::ChocolateyCommon).to receive(:file_exists?).with('c:\dude\bin\choco.exe').and_return(true)
# unhold is called in installs on compiled choco
allow(Puppet::Util::Execution).to receive(:execute)
Expand Down

0 comments on commit 74d4cd9

Please sign in to comment.