See File.rename. Rename the file.
File.rename
719 720 721
# File 'lib/fakefs/pathname.rb', line 719 def rename(to) File.rename(@path, to) end