Update tests to include passed in arg values

This commit is contained in:
Brian Cain 2018-08-14 13:24:42 -07:00
parent 29aba535ce
commit 8bce4f3828
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 3 additions and 3 deletions

View File

@ -197,7 +197,7 @@ describe Vagrant::Plugin::V2::Trigger do
exit_codes = trigger.exit_codes
expect(Vagrant::Util::PowerShell).to receive(:execute).
with("/vagrant/home/script.ps1", options)
with("/vagrant/home/script.ps1", "HELLO", "THERE", options)
subject.send(:run, shell_config, on_error, exit_codes)
end
@ -227,7 +227,7 @@ describe Vagrant::Plugin::V2::Trigger do
exit_codes = trigger.exit_codes
expect(Vagrant::Util::Subprocess).to receive(:execute).
with("/vagrant/home/script.sh", options)
with("/vagrant/home/script.sh", "HELLO", options)
subject.send(:run, shell_config, on_error, exit_codes)
end
@ -243,7 +243,7 @@ describe Vagrant::Plugin::V2::Trigger do
exit_codes = trigger.exit_codes
expect(Vagrant::Util::Subprocess).to receive(:execute).
with("/vagrant/home/script.sh", options)
with("/vagrant/home/script.sh", "HELLO", options)
subject.send(:run, shell_config, on_error, exit_codes)
end