Grails

Cannot Integration Test Redirect w/o "controller" arg

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Blocker Blocker
  • Resolution: Fixed
  • Affects Version/s: 1.1
  • Fix Version/s: 1.1.1
  • Component/s: Testing
  • Labels:
    None
  • Testcase included:
    yes

Description

In an integration test, attempting to do "redirect(action:'foo')" in a controller results in a test failure.

Activity

Hide
chris bedford added a comment -

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


Chris Bedford

Founder & Lead Lackey
Build Lackey Labs
http://buildlackey.com

Show
chris bedford added a comment - 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
– Chris Bedford Founder & Lead Lackey Build Lackey Labs http://buildlackey.com

People

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved: