# File lib/fakefs/fileutils.rb, line 30 def ln_s(target, path, options = {}) options = { :force => false }.merge(options) (FileSystem.find(path) and !options[:force]) ? raise(Errno::EEXIST, path) : FileSystem.delete(path) FileSystem.add(path, FakeSymlink.new(target)) end