(maint) Fix unused argument and variable in file_spec.rb