Fix up failing tests

This commit is contained in:
Chris Roberts 2019-03-11 12:59:18 -07:00
parent 893771e535
commit 8952168480
2 changed files with 6 additions and 3 deletions

View File

@ -30,6 +30,9 @@ describe Vagrant::CLI do
describe "#execute" do
let(:triggers) { double("triggers") }
before { allow(Vagrant::Util::Experimental).to receive(:feature_enabled?) }
it "invokes help and exits with 1 if invalid command" do
subject = described_class.new(["i-dont-exist"], env)
expect(subject).to receive(:help).once
@ -59,7 +62,7 @@ describe Vagrant::CLI do
it "fires triggers, if enabled" do
allow(Vagrant::Util::Experimental).to receive(:feature_enabled?).
with("typed_triggers").and_return("true")
with("typed_triggers").and_return(true)
allow(triggers).to receive(:fire_triggers)
commands[:destroy] = [command_lambda("destroy", 42), {}]
@ -76,7 +79,7 @@ describe Vagrant::CLI do
it "does not fire triggers if disabled" do
allow(Vagrant::Util::Experimental).to receive(:feature_enabled?).
with("typed_triggers").and_return("false")
with("typed_triggers").and_return(false)
commands[:destroy] = [command_lambda("destroy", 42), {}]

View File

@ -9,7 +9,7 @@ describe Vagrant::GoPlugin::CapabilityPlugin do
describe ".interface" do
it "should create an interface instance" do
expect(described_class.interface).to be_a(Vagrant::GoPlugin::CapabilityHost::Interface)
expect(described_class.interface).to be_a(Vagrant::GoPlugin::CapabilityPlugin::Interface)
end
it "should cache generated interface" do