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

6 commits

Author SHA1 Message Date
Andy Brody
2dd4b3739d Enable new GET param generation, add tests.
Switch the generation of HTTP GET params over to the new, more
featureful method in Utils, which handles Rack/Rails style nested
parameters. Also add a variety of tests for this functionality.
2015-11-12 00:11:33 -08:00
Andy Brody
3d0fd0b188 Append GET params with & when adding more.
If there is already a '?' in the URL, add additional query params using
'&' instead.

Ideally we would be more clever about this and actually take the URL
into parts and then unparse in a structured way rather than just blindly
appending, but oh well.

Fixes: #402, #96
2015-11-08 00:56:58 -08:00
Andy Brody
5ce0c6ebde Fix up tests for encoding changes.
Add a `.to_hash => {}` for the Net HTTP response mocks.
2015-03-13 18:00:51 -07:00
Andy Brody
238105b17a Change default headers to Accept: */*.
Previously rest-client would prefer application/xml, which doesn't seem
appropriate for a general purpose HTTP library.
2014-11-02 15:57:10 -08:00
Andy Brody
543dbc3816 Fix a large number of style nits.
Working slowly through the rubocop list.
2014-07-08 03:54:01 -07:00
Larry Gilbert
d7a11503af Reorganize specs
* Put unit and integration specs into separate subdirectories
* Consolidate all requires of 'webmock/rspec' into spec_helper.rb
* Use WebMock.{disable!,enable!} for specs calling live server
2013-08-30 18:45:06 -07:00
Renamed from spec/request2_spec.rb (Browse further)