Make specs less brittle.

`expect { }.not_to raise_error(ErrorClass)` is brittle because
the expectation passes if the block raises any other kind of error,
which could silence other expectation failures or fat-fingered
method names.