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

Feature/#762 rspec #832

Merged
merged 52 commits into from
Nov 26, 2018
Merged

Feature/#762 rspec #832

merged 52 commits into from
Nov 26, 2018

Conversation

iMacTia
Copy link
Member

@iMacTia iMacTia commented Nov 9, 2018

Description

Converts Minitests to RSpec 🎉
Fixes #762.

Todos

  • Tests
  • Reach at least 90% coverage

Additional Notes

With previous tests suite:
Time: 15s, Assertions: 1043

With new tests suite:
Time: 12s, Examples: 1478

Additionally, the previous tests suite needed to be executed twice, once with SSL=false and another with SSL=true. The new suite takes advantage of RSpec "shared examples" to test both scenarios in a single run. So in reality the runtime of the old suite was around 30s.

Adds bin folder with console and setup commands
started implementation of shared examples for adapters based on webmock rather than the live server
Converts parallel tests.
…ure/#762-rspec

# Conflicts:
#	lib/faraday.rb
#	lib/faraday/connection.rb
#	test/adapters/logger_test.rb
#	test/parameters_test.rb
Moves Faraday::Utils classes (Headers and ParamsHash) into separate files.
Converts Faraday::Utils::Headers tests.
Converts and isolates Faraday::Request and Faraday::Response tests.
…ure/#762-rspec

# Conflicts:
#	lib/faraday/utils.rb
…ure/#762-rspec

# Conflicts:
#	lib/faraday/utils.rb
Fixes an issue with `rack_builder#dup`.
Adds new `unregister_middleware` method to Faraday::Middleware.
…ure/#762-rspec

# Conflicts:
#	test/adapters/net_http_persistent_test.rb
@iMacTia iMacTia merged commit f1b2657 into 1.0 Nov 26, 2018
@iMacTia iMacTia deleted the feature/#762-rspec branch November 26, 2018 17:11
@iMacTia iMacTia mentioned this pull request Nov 27, 2018
@technoweenie technoweenie mentioned this pull request Jun 25, 2019
3 tasks
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