11 Commits

Author SHA1 Message Date
Jerry Cheung
cc918842fb enable test suite in SSL mode 2012-08-16 18:20:23 +02:00
Mislav Marohnić
049ff25ddc all adapters return string for empty responses now 2012-08-12 15:59:45 +02:00
Myron Marston
f41ffaabb7 Ensure empty body responses are consistently returned as empty strings.
Zero-byte response bodies can be represented as either nil or '' in ruby.
Most ruby HTTP clients use '' (which, conveniently, allows clients
to assume the body is always a string), but Net::HTTP, for whatever
reason, uses nil.

This change makes it so that all faraday adapters consistently return
'' for zero-byte response bodies.
2012-08-12 13:49:20 +02:00
Mislav Marohnić
e6787c144b script/test spins up test server, runs test suite 2012-06-19 11:15:11 +02:00
Mislav Marohnić
a019a11946 cleanup Net::HTTP-specific tests 2012-04-15 14:33:21 +02:00
Mislav Marohnić
1dcfad746d ruby 1.8 compat 2012-04-15 12:25:27 +02:00
Mislav Marohnić
5d7a50cf0a refactor integration tests to be cleaner and use fewer endpoints 2012-04-14 23:02:11 +02:00
Mislav Marohnić
96490b351d test that adapters can set the User-Agent string 2012-04-14 23:02:11 +02:00
Mislav Marohnić
9c49b0b4c4 properly skip adapter tests if LIVE env variable isn't configured 2012-04-14 23:02:10 +02:00
Jerry Cheung
265c02e771 refactor adapter tests to use modules for shared tests 2012-04-14 23:00:45 +02:00
Jerry Cheung
e0bdfd2803 add Faraday::Adapter::Rack 2012-04-14 23:00:45 +02:00