From 99a23242ec9b60278f9f8fd1580dc5a77ec7bbd3 Mon Sep 17 00:00:00 2001 From: Mitchell Hashimoto Date: Wed, 15 Jan 2014 18:31:58 -0800 Subject: [PATCH] core: tests for more shared_helpers --- test/unit/vagrant/shared_helpers_test.rb | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/test/unit/vagrant/shared_helpers_test.rb b/test/unit/vagrant/shared_helpers_test.rb index b3d2098a8..c11408802 100644 --- a/test/unit/vagrant/shared_helpers_test.rb +++ b/test/unit/vagrant/shared_helpers_test.rb @@ -8,6 +8,20 @@ describe Vagrant do subject { described_class } + describe "#plugins_enabled?" do + it "returns true if the env is not set" do + with_temp_env("VAGRANT_NO_PLUGINS" => nil) do + expect(subject.plugins_enabled?).to be_true + end + end + + it "returns false if the env is set" do + with_temp_env("VAGRANT_NO_PLUGINS" => "1") do + expect(subject.plugins_enabled?).to be_false + end + end + end + describe "#user_data_path" do around do |example| env = {