Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

write_cookies! nil exception in ActionDispatch::TestRequest #2071

Merged
merged 1 commit into from Jul 14, 2011

Conversation

bfolkens
Copy link

write_cookies! in ActionDispatch::TestRequest won't write nil value when $KCODE == 'u' on 1.8.7

@bfolkens
Copy link
Author

Added a non-implementation specific test this time, and asserted nothing-is-thrown.

Seems the problem only happens when $KCODE is set to 'u' on 1.8.7 - so originally I figured I'd put that into the test case, otherwise the failure doesn't get triggered all the time on 1.8.7 (unless that doesn't matter?).

@bfolkens bfolkens closed this Jul 14, 2011
@bfolkens bfolkens reopened this Jul 14, 2011
spastorino added a commit that referenced this pull request Jul 14, 2011
write_cookies! nil exception in ActionDispatch::TestRequest
@spastorino spastorino merged commit 13b2153 into rails:3-1-stable Jul 14, 2011
@spastorino
Copy link
Contributor

Please port this to master

@bfolkens
Copy link
Author

It doesn't seem like master has any issues with the nil values (I wrote a test case and it passes, even regardless of the $KCODE setting). Do you want me to just include the test case to avoid any regression?

@spastorino
Copy link
Contributor

yes that would be good :)

spastorino added a commit that referenced this pull request Jul 14, 2011
ported test from pull request #2071 to master
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants