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

Improved cookies support for WebMockHttpClient #392

Merged
merged 2 commits into from
Jun 1, 2014
Merged

Improved cookies support for WebMockHttpClient #392

merged 2 commits into from
Jun 1, 2014

Conversation

calonso
Copy link

@calonso calonso commented May 23, 2014

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.

@calonso
Copy link
Author

calonso commented May 27, 2014

Can't reproduce the failing test. Any help on this please?

@calonso
Copy link
Author

calonso commented Jun 1, 2014

@bblimke ?

@bblimke
Copy link
Owner

bblimke commented Jun 1, 2014

Looks good. Cheers! :)

Probably randomly failing test

bblimke added a commit that referenced this pull request Jun 1, 2014
…support

Improved cookies support for WebMockHttpClient
@bblimke bblimke merged commit 03914e2 into bblimke:master Jun 1, 2014
@bblimke
Copy link
Owner

bblimke commented Jun 1, 2014

It looks like it's failing on Jruby. Have you run specs using jruby?

@calonso
Copy link
Author

calonso commented Jun 1, 2014

Nope, sorry, never used JRuby :) I'll do it now and try to fix it.

@calonso
Copy link
Author

calonso commented Jun 1, 2014

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?

@bblimke
Copy link
Owner

bblimke commented Jun 1, 2014

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

@calonso
Copy link
Author

calonso commented Jun 1, 2014

Ok, done. Hopefully now will work. Pull request here: #394

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.

2 participants