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

Noticed this unused argument while working on #2168.