Fix failing spec for resource file
This spec was trying to cause a failure to write the resource file by
using the incorrect location "//bad file". However, this location is
actually perfectly valid, so the write was succeeding, and the spec was
failing. Now we use a genuinely unwritable location.