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

Already on GitHub? Sign in to your account

ActionDispatch::ClosedError: Cannot modify cookies because it was closed. This means it was already streamed back to the client or converted to HTTP headers. #3

Closed
dreamr opened this Issue Jun 1, 2011 · 2 comments

Comments

Projects
None yet
2 participants

dreamr commented Jun 1, 2011

I logged it at rails 3.1 as well: rails/rails#1452

So I think this has to do with the before vs streaming starting and cookies and sessions being closed now. Anywhere I call to create a model in a request spec in a before block this error shows up. It was showing up for me with flash messages to until there was a patch in edge rails to fix it: rails/rails#290

This does not address the issue with cookies though. I am not sure if it is rspec or rails' issue so i'll let you guys work that out. I will tackle it this weekend to see which myself.

dreamr commented Jun 1, 2011

this is edge rspec2 rails + edge rails 3.1

@dreamr dreamr closed this Jun 1, 2011

@dreamr dreamr reopened this Jun 1, 2011

Owner

dchelimsky commented Jul 3, 2011

This is the tracker for rspec-rails-1 - please repost to https://github.com/rspec/rspec-rails/issues.

Thx.

@dchelimsky dchelimsky closed this Jul 3, 2011

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment