Skip to content

Commit

Permalink
fix failing HalJsonRendererSpec after properly resetting state betwee…
Browse files Browse the repository at this point in the history
…n tests
  • Loading branch information
lhotari committed Jan 7, 2015
1 parent 8f8b97f commit a525901
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -776,7 +776,7 @@ class HalJsonRendererSpec extends Specification{
renderer.prettyPrint = true
when:"A domain object is rendered"
def webRequest = GrailsWebMockUtil.bindMockWebRequest()
def webRequest = boundMimeTypeRequest()
webRequest.request.setAttribute(WebUtils.FORWARD_REQUEST_URI_ATTRIBUTE, "/product/Macbook")
webRequest.request.addHeader("ACCEPT", "application/hal+json")
def response = webRequest.response
Expand Down

0 comments on commit a525901

Please sign in to comment.