Add run and run_remote expectations

This commit is contained in:
Brian Cain 2018-03-19 16:16:33 -07:00
parent 7b1b044e72
commit e157362ace
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 4 additions and 0 deletions

View File

@ -107,6 +107,8 @@ describe VagrantPlugins::Kernel_V2::VagrantConfigTrigger do
cfg.on_error = :continue cfg.on_error = :continue
cfg.ignore = :up cfg.ignore = :up
cfg.only_on = "guest" cfg.only_on = "guest"
cfg.run = {inline: "apt-get update"}
cfg.run_remote = {inline: "apt-get update", env: {"VAR"=>"VAL"}}
end end
it "sets the options" do it "sets the options" do
@ -116,6 +118,8 @@ describe VagrantPlugins::Kernel_V2::VagrantConfigTrigger do
expect(cfg.on_error).to eq(:continue) expect(cfg.on_error).to eq(:continue)
expect(cfg.ignore).to eq([:up]) expect(cfg.ignore).to eq([:up])
expect(cfg.only_on).to eq(["guest"]) 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
end end