Fix test issues

This commit is contained in:
Seth Vargo 2016-05-28 23:44:11 -04:00
parent f95eb124d5
commit ca337122dc
No known key found for this signature in database
GPG Key ID: 905A90C2949E8787
4 changed files with 4 additions and 4 deletions

View File

@ -245,7 +245,7 @@ describe Vagrant::Box, :skip_windows do
end end
after do after do
metadata_url.unlink if metadata_url.file? metadata_url.unlink
end end
it "loads the url and returns the data" do it "loads the url and returns the data" do

View File

@ -933,7 +933,7 @@ VF
let(:instance) { described_class.new(local_data_path: local_data_path) } let(:instance) { described_class.new(local_data_path: local_data_path) }
after do after do
File.unlink(v1_dotfile_tempfile) if File.file?(v1_dotfile_template) File.unlink(v1_dotfile) if File.file?(v1_dotfile)
end end
it "should be fine if dotfile is empty" do it "should be fine if dotfile is empty" do

View File

@ -9,7 +9,7 @@ require "vagrant/machine_index"
describe Vagrant::MachineIndex do describe Vagrant::MachineIndex do
include_context "unit" include_context "unit"
let(:data_dir) { Dir.mktmpdir } let(:data_dir) { temporary_dir }
let(:entry_klass) { Vagrant::MachineIndex::Entry } let(:entry_klass) { Vagrant::MachineIndex::Entry }
let(:new_entry) do let(:new_entry) do

View File

@ -43,7 +43,7 @@ describe Vagrant::Machine do
let(:instance) { new_instance } let(:instance) { new_instance }
after do after do
FileUtils.rm_rf(data_dir) FileUtils.rm_rf(data_dir) if data_dir
end end
subject { instance } subject { instance }