Fix up failing tests
This commit is contained in:
parent
893771e535
commit
8952168480
|
@ -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), {}]
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue