1
0
Fork 0
mirror of https://github.com/rest-client/rest-client.git synced 2022-11-09 13:49:40 -05:00
Commit graph

9 commits

Author SHA1 Message Date
Andy Brody
ae3ca18884 Fix rubocop failures introduced by rubocop 0.50. 2017-09-19 21:49:36 -04:00
Andy Brody
3e8642cd8d Add some tests for accept_encoding behavior. 2017-05-03 23:19:05 -04:00
Andy Brody
197bb96c94 Use built-in Net::HTTP support for compression.
The Net::HTTP in ruby 2.0+ supports gzip and deflate decoding on its
own. Remove Accept-Encoding from the default headers set, and instead
let Net::HTTP take care of it.

Note: this could break compatibility for users who are setting
Accept-Encoding headers themselves or who expect the body to still be
compressed with `:raw_response => true`.
2017-05-03 23:18:57 -04:00
Andy Brody
4903660934 Use plain HTTP httpbin.org for all Jruby versions. 2017-04-09 18:56:00 -04:00
Andy Brody
ff2a31d9f0 Use plain HTTP httpbin.org for jruby 9.0.5.0. 2017-02-18 22:47:19 -05:00
Andy Brody
83f3bb409c Improve a few basic auth tests.
- Add a httpbin basic auth test.
2016-06-10 02:32:39 -04:00
Andy Brody
4971d1a6e1 Convert specs to RSpec 2.99.2 syntax with Transpec
This conversion is done by Transpec 3.2.2 with the following command:
    transpec

* 317 conversions
    from: obj.should
      to: expect(obj).to

* 160 conversions
    from: obj.stub(:message)
      to: allow(obj).to receive(:message)

* 100 conversions
    from: obj.should_receive(:message)
      to: expect(obj).to receive(:message)

* 30 conversions
    from: lambda { }.should
      to: expect { }.to

* 22 conversions
    from: obj.should_not_receive(:message)
      to: expect(obj).not_to receive(:message)

* 4 conversions
    from: obj.should_not
      to: expect(obj).not_to

* 2 conversions
    from: == expected
      to: eq(expected)

* 1 conversion
    from: expect(collection).to have_at_least(n).items
      to: expect(collection.size).to be >= n

* 1 conversion
    from: obj.unstub(:message)
      to: allow(obj).to receive(:message).and_call_original

For more details: https://github.com/yujinakayama/transpec#supported-conversions
2016-06-05 19:52:16 -04:00
Andy Brody
ae2efa4aa9 Work around travis jruby-19mode test failures. 2015-06-09 18:05:54 -07:00
Andy Brody
1affca3412 Start adding functional tests using httpbin.org.
These tests are a work in progress.
2015-04-15 15:37:29 -07:00