Oops, File.rm => File.delete

This commit is contained in:
Mitchell Hashimoto 2010-05-29 13:21:57 -07:00
parent 46e9250f09
commit eb30074eea
2 changed files with 2 additions and 2 deletions

View File

@ -315,7 +315,7 @@ module Vagrant
end
if data.empty?
File.rm(dotfile_path)
File.delete(dotfile_path)
else
File.open(dotfile_path, 'w+') do |f|
f.write(data.to_json)

View File

@ -739,7 +739,7 @@ class EnvironmentTest < Test::Unit::TestCase
}
@env.stubs(:vms).returns(vms)
File.expects(:rm).with(@env.dotfile_path).once
File.expects(:delete).with(@env.dotfile_path).once
@env.update_dotfile
end