Update rspec tests for trigger plugin

This commit is contained in:
Brian Cain 2018-03-30 15:37:31 -07:00
parent 85dedf25d9
commit 6ea7819402
No known key found for this signature in database
GPG Key ID: 43D51080D357A001
1 changed files with 11 additions and 10 deletions

View File

@ -20,19 +20,20 @@ describe Vagrant::Plugin::V2::Trigger do
let(:subject) { described_class.new(env, config, machine) } let(:subject) { described_class.new(env, config, machine) }
context "firing before triggers" do context "#fire_triggers" do
it "raises an error if an inproper stage is given" do
expect{ subject.fire_triggers(:up, :not_real, "guest") }.
to raise_error(Vagrant::Errors::TriggersNoStageGiven)
end
end end
context "firing after triggers" do context "#filter_triggers" do
end end
context "filtering triggers" do context "#fire" do
end end
context "firing triggers" do context "#info" do
end
context "executing info" do
let(:message) { "Printing some info" } let(:message) { "Printing some info" }
it "prints messages at INFO" do it "prints messages at INFO" do
@ -46,7 +47,7 @@ describe Vagrant::Plugin::V2::Trigger do
end end
end end
context "executing warn" do context "#warn" do
let(:message) { "Printing some warnings" } let(:message) { "Printing some warnings" }
it "prints messages at WARN" do it "prints messages at WARN" do
@ -60,9 +61,9 @@ describe Vagrant::Plugin::V2::Trigger do
end end
end end
context "executing run" do context "#run" do
end end
context "executing run_remote" do context "#run_remote" do
end end
end end