From b3f1161e3260afdea989ebbdd71be5756cfb2851 Mon Sep 17 00:00:00 2001 From: Camilo Aguilar Date: Mon, 9 Apr 2012 16:28:13 -0400 Subject: [PATCH] Fixes specs due to change in json schema validation framework in bugswarm-api --- configuration/specs/apikey.spec.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configuration/specs/apikey.spec.js b/configuration/specs/apikey.spec.js index 8b4b87d..1d1f3d9 100644 --- a/configuration/specs/apikey.spec.js +++ b/configuration/specs/apikey.spec.js @@ -67,8 +67,8 @@ describe('ApiKey service', function(){ var errors = err.errors; Array.isArray(errors).should.be.eql(true); errors[0].field.should.be.eql('type'); - errors[0].description.should.be.eql('Instance is not one of the possible values: configuration,participation'); - errors[0].code.should.be.eql('enum'); + errors[0].description.should.be.eql('does not match the regex pattern ^[a-zA-Z0-9]+$'); + errors[0].code.should.be.eql('CONTRACT_VIOLATION'); done(); }); });