Fixed a couple failing tests.

This commit is contained in:
Jon Brisbin
2012-08-07 11:07:20 -05:00
parent 81b5f29c1e
commit 42c86af9a2
2 changed files with 5 additions and 5 deletions

View File

@@ -732,9 +732,9 @@ public class RepositoryRestController
selfUri);
resource.addLink(new SimpleLink(SELF, selfUri));
publishEvent(new BeforeRenderResourceEvent(request, repoMeta, body));
body = resource;
publishEvent(new BeforeRenderResourceEvent(request, repoMeta, body));
}
return negotiateResponse(request, HttpStatus.CREATED, headers, body);
@@ -885,9 +885,9 @@ public class RepositoryRestController
selfUri);
res.addLink(new SimpleLink(SELF, selfUri));
publishEvent(new BeforeRenderResourceEvent(request, repoMeta, body));
body = res;
publishEvent(new BeforeRenderResourceEvent(request, repoMeta, body));
}
if(!isUpdate) {

View File

@@ -25,7 +25,7 @@ class DiscoverySpec extends BaseSpec {
def links = readJson(response).links
then:
links.size() == 4
links.size() == 5
}