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

14 commits

Author SHA1 Message Date
Jon Rowe
f0bf4d8838 cleanup trailing whitespace
(cherry picked from commit d6bb24c75b)
Signed-off-by: Larry Gilbert <larry@l2g.to>
2014-02-03 13:21:01 -08:00
Jon Rowe
da4f97f9c5 actually assert in spec, and fix result
(cherry picked from commit f498c6cf6f)
Signed-off-by: Larry Gilbert <larry@l2g.to>
2014-02-03 13:19:38 -08:00
Jon Rowe
c6a791f752 convert == to eq to avoid warnings, (all were done for concistency)
(cherry picked from commit 0b6e74593a)
Signed-off-by: Larry Gilbert <larry@l2g.to>

Conflicts:
	spec/request_spec.rb
2014-02-03 13:18:31 -08:00
Kosuke Asami
4086123c31 Use 'double' instead of 'mock' about rspec-mock
'mock' is deprecated after rspec-mock 2.14.0.rc1(2013-05-27 released).
'mock' method may be removed for rspec-mock 3.0.0.

And, this fixes can remove following warnings.
DEPRECATION: mock is deprecated. Use double instead. Called from ...

(cherry picked from commit c0fd016dc3)

Conflicts:
	spec/request_spec.rb
2014-01-24 19:28:55 -08:00
Kyle VanderBeek
ccabff0e10 Add some testing for AbstractResponse#return! and fix the generic fallback exception that gets raised.
In some versions of Ruby, a parenthesis ambiguity warning would be emitted:
  [...] ruby/1.8/gems/rest-client-1.6.1/lib/restclient/abstract_response.rb:50: warning: parenthesize argument(s) for future version
Better to be unambiguous about the exception and include the response code too.
2010-12-10 15:11:57 -08:00
Niko Dittmann
ec7e9923cc ! ruby 1.9.2 spec loading 2010-07-04 15:47:06 +02:00
Julien Kirch
28ac3d95f6 it shouldn't espace cookie 2010-06-03 21:18:48 +02:00
Julien Kirch
eced2bf6bb using CGI to parse cookies 2010-04-30 20:32:27 +02:00
Julien Kirch
59774b2cf1 errors in tests detected by jruby 2010-04-23 22:37:02 +02:00
Julien Kirch
a2e61d28f1 typo in abstract_response.description + added test 2010-04-23 19:40:49 +02:00
Julien Kirch
36ab099da5 response are now string and response is a module 2010-03-29 19:38:23 +02:00
Julien Kirch
a63148d2b8 Fixed redirection, and move the code to Response 2010-02-10 21:31:59 +01:00
Julien Kirch
f7b1645383 Fixed tests 2010-01-27 23:07:03 +01:00
Julien Kirch
e0baffea9a Finished renaming spec 2010-01-26 18:57:48 +01:00
Renamed from spec/abstract_response.rb (Browse further)