Add run and run_remote expectations
This commit is contained in:
parent
7b1b044e72
commit
e157362ace
|
@ -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
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue