Lighthouse has a new layout. Prefer the old one? Return to the old layout, and switch back any time from the link at the top of each page.

This project is archived and is in readonly mode.

TestResponse.cookies are HTML escaped

#1867

Reported by Doug McInnes · February 4th, 2009 @ 03:05 AM

State: resolved
Milestone: 2.x
Assigned to: nobody
Importance: none

Activity

  1. Doug McInnes
    Doug McInnes

    Calling cookies["mycookie"] in controller tests return cookie values HTML escpaed.

    February 4th, 2009 @ 03:06 AM

  2. Doug McInnes
    Doug McInnes
    • Tag set to 2.3, actioncontroller, cookie, test, testing, tests

    Forgot to mention, the attached patch adds a testcase that shows the problem, plus I added a simple fix. Not sure if the fix is an ideal solution but it works :)

    February 4th, 2009 @ 05:42 AM

  3. Roger Ertesvag
    Roger Ertesvag

    I also have this issue after upgrading to Rails 2.3.

    Have applied the patch and can confirm that it solves the problem.

    March 21st, 2009 @ 12:28 PM

  4. Repository
    Repository
    • State changed from new to resolved

    (from [dc69d9308aefb249eae3776e186f4c94fdf50eb7]) Fix for TestResponse.cookies returning cookies unescaped [#1867 TestResponse.cookies are HTML escaped state:resolved]

    Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...

    April 7th, 2009 @ 07:22 PM

  5. Repository
    Repository

    (from [c877857d59554d78dbf45f5f9fcaafb8badec4e2]) Fix for TestResponse.cookies returning cookies unescaped [#1867 TestResponse.cookies are HTML escaped state:resolved]

    Signed-off-by: David Heinemeier Hansson david@loudthinking.com http://github.com/rails/rails/co...

    April 7th, 2009 @ 07:22 PM