WebMockHttpClient now supports setting multiple cookies at once by using an array (As em-http-request does).
I also added an utility method to easily access those response cookies to be able to test them.
Unit tests included.
Improved cookies support for em-http-request. Added method to get res…
moved hash to old ruby style
Can't reproduce the failing test. Any help on this please?
Looks good. Cheers! :)
Probably randomly failing test
It looks like it's failing on Jruby. Have you run specs using jruby?
Nope, sorry, never used JRuby :) I'll do it now and try to fix it.
Looks like a problem between JRuby and EventMachine. I see you not running specs if JRuby & EventMachine (unless RUBY_PLATFORM =~ /java/). Why is that? Do you want me to do the same?
Yes, you should move your spec/unit/http_lib_adapters/webmock_http_client_spec.rb examples as part of https://github.com/bblimke/webmock/blob/master/spec/acceptance/em_http_request/em_http_request_spec.rb
Ok, done. Hopefully now will work. Pull request here: #394