Josh Kalderimis
00958696d8
corrected some further tests and docs for the ARes change to json change
2011-05-18 00:34:10 -04:00
Prem Sichanugrist
733bfa63f5
Remove #among?
from Active Support
...
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?`.
2011-04-13 20:25:28 +08:00
David Heinemeier Hansson
d1575ae1b9
Change Object#either? to Object#among? -- thanks to @jamesarosen for the suggestion!
2011-04-12 00:23:07 +02:00
Prem Sichanugrist
a9f3c9da01
Using Object#in? and Object#either? in various places
...
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?.
2011-04-11 03:17:09 +08:00
Josh Bassett
056be15212
Fixed a bug where ActiveResource::HttpMock would not replace an existing response when passing a block to the respond_to method.
...
Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
2011-02-09 19:25:53 -02:00
Gaston Ramos
aee043de5a
- ActiveResource::HttpMock.respond_to
...
do not replace the response with the same path but different method
- Fix typo
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-07 16:50:41 +02:00
Gaston Ramos
b9f8501f82
- Fix ActiveResource::HttpMock.respond_to replace the response
...
if it has the same request
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-10-07 16:50:34 +02:00
Mikel Lindsaar
58d0e2c23c
Adding option to ActiveResource to allow you to not reset the previously stored requests and responses by passing false to respond_to
2010-08-29 22:54:19 -07:00
Mikel Lindsaar
a299642293
Updating documentation on ActiveResource HTTP Mock and also adding test coverage
2010-08-29 22:54:19 -07:00
Mikel Lindsaar
c1b49f1e18
Make ActiveResource::InvalidRequestError more user friendly
...
Signed-off-by: Xavier Noria <fxn@hashref.com>
2010-08-25 10:00:37 +02:00
Elomar França
176c386409
Fix bug where ActiveResource::HttpMock would overwrite Accept/Content-Type header to application/xml [ #4939 state:resolved]
...
Signed-off-by: José Valim <jose.valim@gmail.com>
2010-06-24 13:25:10 +02:00