See File.rename. Rename the file.
File.rename
735 736 737
# File 'lib/fakefs/pathname.rb', line 735 def rename(to) File.rename(@path, to) end