Skip to content

Commit 7b27d17

Browse files
author
sebastien matrion
committed
Remove previous test for "@issue('11673')"
1 parent 1636d90 commit 7b27d17

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

grails-web-url-mappings/src/test/groovy/grails/web/mapping/RedirectNonAbsoluteURISpec.groovy

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -94,26 +94,6 @@ class RedirectNonAbsoluteURISpec extends AbstractUrlMappingsSpec {
9494
RequestContextHolder.setRequestAttributes(null)
9595
}
9696

97-
@Issue('11673')
98-
void 'An "absolute=false" redirect includes context-path in Location header'() {
99-
given:
100-
def linkGenerator = getLinkGeneratorWithContextPath {
101-
"/$controller/$action?/$id?"()
102-
}
103-
def responseRedirector = new ResponseRedirector(linkGenerator)
104-
HttpServletRequest request = Mock(HttpServletRequest) { lookup() >> GrailsWebMockUtil.bindMockWebRequest() }
105-
HttpServletResponse response = Mock(HttpServletResponse)
106-
107-
when: 'redirecting with absolute=false where context-path is set'
108-
responseRedirector.redirect(request, response, [controller: 'test', action: 'foo', absolute: false])
109-
110-
then: 'the partial URI includes context-path'
111-
1 * response.setStatus(302)
112-
1 * response.setHeader(HttpHeaders.LOCATION, CONTEXT_PATH + '/test/foo')
113-
114-
cleanup:
115-
RequestContextHolder.setRequestAttributes(null)
116-
}
11797

11898
@Issue('15132')
11999
void 'An "absolute=false" redirect not added context-path with url params'() {

0 commit comments

Comments
 (0)