forked from lostisland/faraday
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor adapter tests to use modules for shared tests
- Loading branch information
Showing
10 changed files
with
142 additions
and
244 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
require File.expand_path('../integration', __FILE__) | ||
|
||
module Adapters | ||
class DefaultTest < Faraday::TestCase | ||
include Integration | ||
include Integration::NonParallel | ||
|
||
def adapter; :default end | ||
|
||
undef :test_POST_sends_files | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require File.expand_path('../integration', __FILE__) | ||
|
||
module Adapters | ||
class EMHttpTest < Faraday::TestCase | ||
include Integration | ||
include Integration::Parallel | ||
|
||
def adapter; :em_http end | ||
|
||
# https://github.com/eventmachine/eventmachine/pull/289 | ||
undef :test_timeout | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
require File.expand_path('../integration', __FILE__) | ||
|
||
module Adapters | ||
class EMSynchronyTest < Faraday::TestCase | ||
include Integration | ||
include Integration::Parallel | ||
|
||
def adapter; :em_synchrony end | ||
|
||
# https://github.com/eventmachine/eventmachine/pull/289 | ||
undef :test_timeout | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
require File.expand_path('../integration', __FILE__) | ||
|
||
module Adapters | ||
class ExconTest < Faraday::TestCase | ||
# https://github.com/geemus/excon/issues/98 | ||
if defined?(RUBY_ENGINE) && "rbx" != RUBY_ENGINE | ||
include Integration | ||
include Integration::NonParallel | ||
|
||
def adapter; :excon end | ||
|
||
# https://github.com/eventmachine/eventmachine/pull/289 | ||
undef :test_timeout | ||
end | ||
end | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
require File.expand_path('../integration', __FILE__) | ||
|
||
module Adapters | ||
class NetHttpPersistentTest < Faraday::TestCase | ||
include Integration | ||
include Integration::NonParallel | ||
|
||
def adapter; :net_http_persistent end | ||
end | ||
end |
Oops, something went wrong.