[Rails] Integrations tests without cookies
Hi
I wonder how to have integration tests that do not use client cookies?
My problem is that when I test my Rails served API using curl, when I do not pass credentials in headers my request is not accepted.
But when an iPhone is used as a client, or Rails integrations tests, credentials seem to be saved between requests, which is something I do not want (I cannot deactivate storing sessions for the whole app because I have multiple route namespaces, but maybe it's possible for a controller only?).
Thanks.
-- You received this message because you are subscribed to the Google Groups "Ruby on Rails: Talk" group.
To post to this group, send email to rubyonrails-talk@googlegroups.com.
To unsubscribe from this group, send email to rubyonrails-talk+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/rubyonrails-talk?hl=en.
0 Comments:
Post a Comment
Subscribe to Post Comments [Atom]
<< Home