Update spec to check for the proper error.

I noticed this spec was raising an `ArgumentError` due to a missing `=` instead of the intended exception.