[core] Clean up RSpec deprecation warnings wrt 'should_not raise_error(SpecificError)'
Clean up RSpec deprecation warnings wrt 'should_not raise_error(SpecificError)'