Tuesday, June 28, 2011

Authlogic steaming issue in Rails 3.1

At the moment, there's a streaming issue with Authlogic and Rails 3.1:
https://github.com/binarylogic/authlogic/issues/262#issuecomment-1460466

Apparently, Authlogic violates MVC in some entrenched way, and consequently this gem breaks Rails 3.1's new streaming.  Hopefully there will be a solution soon, but for now, if you get a

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

 (as I did when I run my cucumber tests together), you'll have to make do and e.g. run your cucumber tests independently by using tags (example: cucumber -t @authlogic-one).

No comments:

Post a Comment

Please be considerate in what you say.