Warn on temp file missing

Warn on temp file missing
This line produces undefined method `gsub!' for nil:NilClass on filing_spec.rb 20, 24, 29, 33 and 49. Please advise.