Skip to content

Commit

Permalink
fix failing tests
Browse files Browse the repository at this point in the history
  • Loading branch information
graemerocher committed Mar 4, 2015
1 parent 1898739 commit 8e012d1
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -117,7 +117,7 @@ class GrailsExceptionResolverTests extends GroovyTestCase {
assertNotNull "should have returned a ModelAndView", modelAndView
assertTrue modelAndView.empty

assertEquals "/grails/foo/bar.dispatch",response.getForwardedUrl()
assertEquals "/foo/bar",response.getForwardedUrl()
}

void testResolveExceptionToControllerWhenResponseCommitted() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,9 +19,9 @@ class ForwardMethodTests extends AbstractGrailsControllerTests {
def testController = new ForwardingController()

webRequest.controllerName = "fowarding"
assertEquals "/grails/fowarding/two.dispatch",testController.one()
assertEquals "/grails/next/go.dispatch",testController.three()
assertEquals "/grails/next/go.dispatch?id=10",testController.four()
assertEquals "/fowarding/two",testController.one()
assertEquals "/next/go",testController.three()
assertEquals "/next/go?id=10",testController.four()
assertEquals "bar", request.foo
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ class ForwardMethodSpec extends Specification {
when:
def forwardUri = forwardMethod.forward(params)
then:
forwardUri == '/grails/foo/foobar.dispatch'
forwardUri == '/foo/foobar'
}

def 'Test forward request with controller and action params and url converter in app context'() {
Expand All @@ -72,7 +72,7 @@ class ForwardMethodSpec extends Specification {
when:
def forwardUri = forwardMethod.forward(params)
then:
forwardUri == '/grails/foo/foobar.dispatch'
forwardUri == '/foo/foobar'
}

def 'Test forward request with controller and action params without an url converter'() {
Expand All @@ -83,7 +83,7 @@ class ForwardMethodSpec extends Specification {
when:
def forwardUri = forwardMethod.forward(params)
then:
forwardUri == '/grails/foo/fooBar.dispatch'
forwardUri == '/foo/fooBar'
}
}
class ForwardMethodTest implements Controller {}

0 comments on commit 8e012d1

Please sign in to comment.