Remove a to_not raise_error(NameError) in mock_spec.

to_not raise_error with a specific class is now deprecated. I'm removing this because of the warning. Not 100% about this one: @myronmarston it appears that this one is originally yours. Is removing this the right thing to do?