Removing deprecation notice for raise_error

`expect { }.to_not raise_error` had a deprecation notice so the method
call was changed accordingly.