aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/cases/http_mock_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* corrected some further tests and docs for the ARes change to json changeJosh Kalderimis2011-05-181-28/+28
|
* Remove `#among?` from Active SupportPrem Sichanugrist2011-04-131-1/+1
| | | | | | After a long list of discussion about the performance problem from using varargs and the reason that we can't find a great pair for it, it would be best to remove support for it for now. It will come back if we can find a good pair for it. For now, Bon Voyage, `#among?`.
* Change Object#either? to Object#among? -- thanks to @jamesarosen for the ↵David Heinemeier Hansson2011-04-121-1/+1
| | | | suggestion!
* Using Object#in? and Object#either? in various placesPrem Sichanugrist2011-04-111-1/+2
| | | | There're a lot of places in Rails source code which make a lot of sense to switching to Object#in? or Object#either? instead of using [].include?.
* Fixed a bug where ActiveResource::HttpMock would not replace an existing ↵Josh Bassett2011-02-091-2/+25
| | | | | | response when passing a block to the respond_to method. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* - ActiveResource::HttpMock.respond_toGaston Ramos2010-10-071-1/+14
| | | | | | | do not replace the response with the same path but different method - Fix typo Signed-off-by: José Valim <jose.valim@gmail.com>
* - Fix ActiveResource::HttpMock.respond_to replace the responseGaston Ramos2010-10-071-4/+19
| | | | | | if it has the same request Signed-off-by: José Valim <jose.valim@gmail.com>
* Adding option to ActiveResource to allow you to not reset the previously ↵Mikel Lindsaar2010-08-291-1/+41
| | | | stored requests and responses by passing false to respond_to
* Updating documentation on ActiveResource HTTP Mock and also adding test coverageMikel Lindsaar2010-08-291-0/+28
|
* Make ActiveResource::InvalidRequestError more user friendlyMikel Lindsaar2010-08-251-0/+11
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Fix bug where ActiveResource::HttpMock would overwrite Accept/Content-Type ↵Elomar França2010-06-241-0/+71
header to application/xml [#4939 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>