Oops, File.rm => File.delete
This commit is contained in:
parent
46e9250f09
commit
eb30074eea
|
@ -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)
|
||||
|
|
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in New Issue