Is this test necessary? Would it be more useful to test the opposite case, that if the validation doesn't enforce allow_nil but the matcher expects it then you should get a proper error message?