core: tests for more shared_helpers

This commit is contained in:
Mitchell Hashimoto 2014-01-15 18:31:58 -08:00
parent 7dc4cbb785
commit 99a23242ec
1 changed files with 14 additions and 0 deletions

View File

@ -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 = {