Spec was using Tempfile without requiring it

The spec couldn't be run on its own. Now it can.