From 8bce4f3828a7c865b30cb9cb8e55b452882cb2e8 Mon Sep 17 00:00:00 2001 From: Brian Cain Date: Tue, 14 Aug 2018 13:24:42 -0700 Subject: [PATCH] Update tests to include passed in arg values --- test/unit/vagrant/plugin/v2/trigger_test.rb | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/test/unit/vagrant/plugin/v2/trigger_test.rb b/test/unit/vagrant/plugin/v2/trigger_test.rb index 66750d613..75d041962 100644 --- a/test/unit/vagrant/plugin/v2/trigger_test.rb +++ b/test/unit/vagrant/plugin/v2/trigger_test.rb @@ -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