Oops, File.rm => File.delete
This commit is contained in:
parent
46e9250f09
commit
eb30074eea
|
@ -315,7 +315,7 @@ module Vagrant
|
||||||
end
|
end
|
||||||
|
|
||||||
if data.empty?
|
if data.empty?
|
||||||
File.rm(dotfile_path)
|
File.delete(dotfile_path)
|
||||||
else
|
else
|
||||||
File.open(dotfile_path, 'w+') do |f|
|
File.open(dotfile_path, 'w+') do |f|
|
||||||
f.write(data.to_json)
|
f.write(data.to_json)
|
||||||
|
|
|
@ -739,7 +739,7 @@ class EnvironmentTest < Test::Unit::TestCase
|
||||||
}
|
}
|
||||||
|
|
||||||
@env.stubs(:vms).returns(vms)
|
@env.stubs(:vms).returns(vms)
|
||||||
File.expects(:rm).with(@env.dotfile_path).once
|
File.expects(:delete).with(@env.dotfile_path).once
|
||||||
@env.update_dotfile
|
@env.update_dotfile
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue