Details
Description
In an integration test, attempting to do "redirect(action:'foo')" in a controller results in a test failure.
-
Hide
- integTestBug.zip
- 21/Apr/09 2:38 PM
- 177 kB
- Robert Fischer
-
- GBTesting/.classpath 6 kB
- GBTesting/.project 0.5 kB
- GBTesting/.../org.codehaus.groovy.eclipse.preferences.prefs 0.1 kB
- GBTesting/application.properties 0.1 kB
- GBTesting/build.xml 5 kB
- GBTesting/GBTesting-test.launch 0.8 kB
- GBTesting/GBTesting.launch 2 kB
- GBTesting/GBTesting.tmproj 2 kB
- GBTesting/grails-app/.../BootStrap.groovy 0.1 kB
- GBTesting/grails-app/conf/Config.groovy 3 kB
- GBTesting/grails-app/.../DataSource.groovy 0.6 kB
- GBTesting/grails-app/.../resources.groovy 0.0 kB
- GBTesting/grails-app/.../UrlMappings.groovy 0.2 kB
- GBTesting/.../FooController.groovy 0.1 kB
- GBTesting/grails-app/.../messages.properties 3 kB
- GBTesting/.../messages_de.properties 3 kB
- GBTesting/.../messages_es.properties 3 kB
- GBTesting/.../messages_fr.properties 2 kB
- GBTesting/.../messages_it.properties 2 kB
- GBTesting/.../messages_ja.properties 2 kB
- GBTesting/.../messages_nl.properties 3 kB
- GBTesting/.../messages_pt_BR.properties 3 kB
- GBTesting/.../messages_ru.properties 4 kB
- GBTesting/.../messages_th.properties 5 kB
- GBTesting/.../messages_zh_CN.properties 2 kB
- GBTesting/grails-app/views/error.gsp 2 kB
- GBTesting/grails-app/views/index.gsp 0.9 kB
- GBTesting/grails-app/.../layouts/main.gsp 0.7 kB
- GBTesting/ivy.xml 2 kB
- GBTesting/ivysettings.xml 0.8 kB
Activity
- All
- Comments
- Work Log
- History
- Activity
- Git Commits
Hi..
I tried this in 1.1.1 and the tests does now pass, but the issue does not seem to be completely fixed. I tried
i created a slightly modified version of Robert's project. This time the controller's redirected action does a render of a string, as follows:>
render( ' redirect blah')
my new integration test verifies that the redirected URL is reported correctly. This >does< now pass... (woo hoo !) That was the original failure...
BUT... the content of the response does not contain the string 'redirect blah'...
I am pretty sure it should....
Sorry I'm not able to attach my modified project.. Seems like you can't do this if the bug is closed and I'm not sure if I am allowed to re-open it (or how to do so).
anyway.. Thanks for looking at this again !
–
Chris Bedford
Founder & Lead Lackey
Build Lackey Labs
http://buildlackey.com