62 Commits

Author SHA1 Message Date
rick olson
04b90eb43e chore: replace class vars with class instance var
probably unnecessary since the integration test suite is going away
2019-03-05 11:33:15 -07:00
Ted Johansson
5b49e6c9b2 Chore: RuboCop Style/MultilineIfModifier (#924) 2019-03-04 08:40:44 +01:00
iMacTia
f8f5985f3e Fixes Rubocop Style/ParallelAssignment 2019-03-03 19:23:46 +00:00
James Herdman
4c7e0a7717 More Cops On Patrol (#901) 2019-03-01 15:28:19 +00:00
iMacTia
127555abcf chore: Rubocop lint Style/YodaCondition 2019-02-28 17:19:40 +00:00
risk danger olson
fd7dbc709b Rubocop style (#897)
* chore: Rubocop lint Style/AccessModifierDeclarations
* chore: Rubocop lint Style/Alias
* chore: Rubocop lint Style/AndOr
* chore: Rubocop lint Naming/ConstantName
* chore: Rubocop lint Naming/PredicateName
* chore: Rubocop lint Naming/UncommunicativeMethodParamName
* chore: Rubocop lint Performance/RedundantBlockCall
* chore: Rubocop lint Performance/StringReplacement
2019-02-28 17:15:28 +00:00
James Herdman
615ad218b4 chore: RuboCop End Alignment (#887) 2019-02-27 14:49:04 +01:00
Mattia
b427091f0e chore: RuboCop: Support Frozen String Literals (#868) 2019-02-24 20:35:12 +01:00
Mattia
91ddced8b2 chore: RuboCop indentations (#864)
* chore: RuboCop lint Layout/CaseIndentation

* chore: RuboCop lint Layout/CommentIndentation

* chore: RuboCop lint Layout/IndentationWidth

* chore: RuboCop lint Layout/MultilineMethodCallIndentation

* chore: RuboCop lint Layout/MultilineOperationIndentation
2019-02-24 11:53:55 +01:00
Mattia
f1b2657523
Feature/#762 rspec (#832) 2018-11-26 17:11:35 +00:00
Leon Miller-Out
a712938071 Fix Ruby 1.9.3 tests on Travis. Drop support for Ruby 1.8.7. (#600)
* Drop support for Ruby 1.9.2, which no-one should be using any more.

* Constraint gem versions for Ruby 1.9.3

* Drop support for Ruby 1.8.7. Many dependencies have dropped support for it.

* Remove conditionals checking for Ruby 1.8.7

* Document Ruby version dependency
2016-08-26 21:45:28 +01:00
Mislav Marohnić
b4095c67be Remove leftright support
I don't really use it and it seems broken with Minitest
2015-10-02 17:31:55 +02:00
Mislav Marohnić
a39183e3ef Relax test coverage treshold for no-SSL suite
The no-SSL test run won't exercise any of the SSL setup code and would
thus dip slightly below treshold:
https://travis-ci.org/lostisland/faraday/jobs/69787142
2015-07-06 14:29:57 -07:00
Rahul Horé
15a045d348 Skip Typhoeus tests for Ruby 2.2+
Old Typhoeus version doesn't seem to compile on this version of Ruby anymore.
2015-02-03 21:36:09 -08:00
Erik Michaels-Ober
b88c4846fa Don't require SimpleCov on Ruby 1.8 2014-07-22 07:07:24 +02:00
risk danger olson
0188ada941 don't require things twice now that autoload is default.
removes require lines added by some jackass in
d0437a1cb42f74b865bcf5fa6111d77b72a88688
2013-10-14 08:59:39 -06:00
Mislav Marohnić
e837ffdc69 fix minitest require in Bundler standalone mode
https://travis-ci.org/lostisland/faraday/jobs/8411907

In Bundler standalone, the `gem` method is still available but the
minitest gem won't be found. Only use the `gem` method when we're
running in the context of Bundler normal mode.
2013-06-25 08:12:36 +02:00
Mislav Marohnić
8080e54f55 proper loading of minitest
blessed by @zenspider:
https://twitter.com/the_zenspider/status/348563962880733184
2013-06-25 05:56:32 +02:00
Mislav Marohnić
4f826047a7 use Minitest 5.0 2013-06-25 04:12:01 +02:00
Mislav Marohnić
c2adfbf918 rewrite test script in bash
The HTTP server is now started in a subprocess, not a thread. Running it
in a Ruby thread had all sorts of problems on different Rubies, such as
random failures on Rubinius.

The new script also avoids starting the HTTP server if not needed, e.g.
if filtering arguments have been used to select only the non-adapter tests.

The script dumps the server log to stdout if any tests failed on Travis.

Avoids auto-starting the debugger because it blocks for input in Rubinius
https://travis-ci.org/lostisland/faraday/jobs/5956815
2013-04-04 01:33:36 +02:00
Erik Michaels-Ober
36379e01af Add Coveralls for code coverage reporting 2013-02-25 11:30:46 -08:00
Mislav Marohnić
26e9869f0b fix test runner after move to minitest
`testrb` utility is gone from minitest. `autorun` is needed if you want
the test to actually run
2012-12-28 15:53:27 +01:00
Erik Michaels-Ober
faab1b08cd Replace test-unit with minitest 2012-12-16 20:22:03 -08:00
technoweenie
d0437a1cb4 tests don't run individually without autoload 2012-10-28 10:00:50 -06:00
Mislav Marohnić
88c76087c8 work around Excon problem with JRuby + SSL 2012-08-16 18:21:04 +02:00
Mislav Marohnić
79022619ac add jruby?, ssl_mode? test helpers 2012-08-16 18:21:04 +02:00
Mislav Marohnić
bcdd1f3edb stop using Webmock
We only used it for one test (now removed) and it doesn't support
Net::HTTP::Persistent, preventing us from testing that adapter properly.
2012-08-12 15:59:45 +02:00
Mislav Marohnić
e6787c144b script/test spins up test server, runs test suite 2012-06-19 11:15:11 +02:00
Erik Michaels-Ober
f18b4d9df5 Exclude tests from code coverage report 2012-04-24 04:09:40 -07:00
rick
7e5222fbc5 dont cry if simplecov isnt around 2012-04-21 11:30:43 -06:00
Erik Michaels-Ober
ede22a7cf8 Add coverage report with SimpleCov 2012-03-13 09:28:18 -05:00
Mislav Marohnić
c78cb61ef1 ensure no regex warnings about UTF-8 strings
This is a cherry-pick of 3dddbfcd776930910d065744517394565339ec2f

References #95
2012-01-02 19:10:17 +01:00
rick
49e47274d5 fix an excon and rack error (headers should be strings, excon likes IPs) 2011-12-28 14:05:23 -07:00
rick
2d8c3619d8 faraday requires itself in tests, rather than the latest gems
It bugs me when libraries load themselves through ruby gems in tests.
I have
to go through the full rake repackage workflow to test my changes,
rather than
simply changing the files.  This also prevents a Faraday lib that's been
loaded outside of ruby gems from reloading the anincompatiblee Faraday
from
rubygems.
2011-12-28 10:58:28 -07:00
Erik Michaels-Ober
bbcc7389f4 Remove unnecessary and require 'rubygems' 2011-12-05 08:12:21 -08:00
Erik Michaels-Ober
21a92c6eb3 Revert to using leftright 2011-05-14 19:50:33 -07:00
Erik Michaels-Ober
bbfcc2539f Use turn instead of leftright 2011-05-14 19:33:51 -07:00
Erik Michaels-Ober
ec7c74442b Require test/unit after loading bundler 2011-05-14 19:23:43 -07:00
Mislav Marohnić
ba81f4c243 instuct Travis to run live tests against "faradaylive.heroku.com" 2011-05-13 11:43:29 -07:00
Mislav Marohnić
50da50306e perform Bundler.setup in tests if needed 2011-03-26 21:25:17 +01:00
Mislav Marohnić
d6d86dd043 extract multipart stuff from Adapter to Request::Multipart middleware 2011-03-26 21:20:21 +01:00
Mislav Marohnić
8c5701f8ea enable net/http adapter to use gzip for GET
also get rid of `full_path_for`; replaced with `url.request_uri`
2011-03-26 21:16:42 +01:00
Mislav Marohnić
20eee87486 warn if some modules haven't loaded in tests 2011-03-26 21:16:42 +01:00
Erik Michaels-Ober
67054db3b0 Bump version to 0.5.1 2010-10-15 17:01:46 -07:00
rick
9629bfba9a leftright and ruby-debug are optional 2010-10-08 15:24:45 -07:00
Wilson Bilkovich
a49d732b6e Match test/helper.rb version requirement to gemspec 2010-07-30 04:01:43 +08:00
Joe Ferris
32ee0dcd7f Depend on rack >= 1.0.1 to be compatible with actionpack 2.3.5 2010-05-04 14:29:00 -04:00
rick
11fc5adf9d load right gem versions in the tests 2010-04-30 09:55:22 -07:00
rick
a47c6066fa remove dependency on context 2010-02-18 13:33:50 -08:00
rick
67d619d780 rename Alice => Faraday. 2010-01-12 17:03:34 -08:00