diff --git a/test/unit/plugins/kernel_v2/config/vm_trigger_test.rb b/test/unit/plugins/kernel_v2/config/vm_trigger_test.rb index 3619cefe9..a7f064f4f 100644 --- a/test/unit/plugins/kernel_v2/config/vm_trigger_test.rb +++ b/test/unit/plugins/kernel_v2/config/vm_trigger_test.rb @@ -107,6 +107,8 @@ describe VagrantPlugins::Kernel_V2::VagrantConfigTrigger do cfg.on_error = :continue cfg.ignore = :up cfg.only_on = "guest" + cfg.run = {inline: "apt-get update"} + cfg.run_remote = {inline: "apt-get update", env: {"VAR"=>"VAL"}} end it "sets the options" do @@ -116,6 +118,8 @@ describe VagrantPlugins::Kernel_V2::VagrantConfigTrigger do expect(cfg.on_error).to eq(:continue) expect(cfg.ignore).to eq([:up]) expect(cfg.only_on).to eq(["guest"]) + expect(cfg.run).to be_a(VagrantPlugins::Shell::Config) + expect(cfg.run_remote).to be_a(VagrantPlugins::Shell::Config) end end