Grails
  1. Grails
  2. GRAILS-7969

redirectArgs no longer available for controller unit tests

    Details

    • Type: Bug Bug
    • Status: Open
    • Priority: Major Major
    • Resolution: Unresolved
    • Affects Version/s: 2.0-M1
    • Fix Version/s: None
    • Component/s: Testing
    • Labels:
      None

      Description

      redirectArgs is no longer available in controller unit tests for Grails 2.0. Instead response.redirectedUrl seems to be the way forward (that's all that is mentioned in the docs). However this means that the test is necessarily also testing the UrlMappings as well as the controller. Personally I would like to see the return of redirectArgs and consider it a bug that it has gone away - though clearly whether it's a bug or an improvement is open to interpretation. It will break existing tests and make them harder and more confusing to fix when people move to 2.0, which I think is good reason to get it working again.

        Issue Links

          Activity

          No work has yet been logged on this issue.

            People

            • Assignee:
              Unassigned
              Reporter:
              Sam Carr
            • Votes:
              12 Vote for this issue
              Watchers:
              8 Start watching this issue

              Dates

              • Created:
                Updated:
                Last Reviewed:

                Development