-
Notifications
You must be signed in to change notification settings - Fork 981
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
Remove net-http adapter and update docs #1336
Conversation
Adapt tests to work without net_http adapter. Switch `Faraday.default_adapter` to `:test`. Update UPGRADING.md and README.md
* If you're relying on `Faraday.default_adapter` (e.g. if you use `Faraday.get` or other verb class methods, or not | ||
specifying an adapter in your connection initializer), then you'll now need to set it yourself. It previously | ||
defaulted to `:net_http`, but it now defaults to `:test`. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Perhaps this section could have a pasteable example of doing what the text says?
Faraday.default_adapter = :net_http | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Well, and some "you could do this" text.)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I didn't know you could have multi-line code snippets inside list items!!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every day is a school day!
@@ -628,9 +644,16 @@ | |||
describe 'request params' do | |||
context 'with simple url' do | |||
let(:url) { 'http://example.com' } | |||
let!(:stubbed) { stub_request(:get, 'http://example.com?a=a&p=3') } | |||
let(:stubs) { Faraday::Adapter::Test::Stubs.new } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Sparkling improvement!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍 Wonderful!
* If you're relying on `Faraday.default_adapter` (e.g. if you use `Faraday.get` or other verb class methods, or not | ||
specifying an adapter in your connection initializer), then you'll now need to set it yourself. It previously | ||
defaulted to `:net_http`, but it now defaults to `:test`. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
(Well, and some "you could do this" text.)
* If you're relying on `Faraday.default_adapter` (e.g. if you use `Faraday.get` or other verb class methods, or not | ||
specifying an adapter in your connection initializer), then you'll now need to set it yourself. It previously | ||
defaulted to `:net_http`, but it now defaults to `:test`. | ||
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Every day is a school day!
Description
Faraday.default_adapter
to:test
.UPGRADING.md
andREADME.md
Todos
List any remaining work that needs to be done, i.e: