aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/lib/active_resource/http_mock.rb
Commit message (Collapse)AuthorAgeFilesLines
* Changed a few instances of of words in the API docs written in British ↵Oemuer Oezkir2011-07-241-1/+1
| | | | | | English to American English(according to Weber)
* Prefer each instead of for in activeresourceGuillermo Iguaran2011-05-231-1/+1
|
* corrected some further tests and docs for the ARes change to json changeJosh Kalderimis2011-05-181-23/+23
|
* Added some docs on ActiveResource::HttpMockSebastian Martinez2011-05-011-0/+4
|
* Remove extra whitespaces.Sebastian Martinez2011-05-011-5/+5
|
* 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-3/+14
| | | | | | response when passing a block to the respond_to method. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* - update documentationGaston Ramos2010-10-071-0/+9
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* - Fix ActiveResource::HttpMock.respond_to replace the responseGaston Ramos2010-10-071-19/+28
| | | | | | 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-2/+38
| | | | stored requests and responses by passing false to respond_to
* Updating documentation on ActiveResource HTTP Mock and also adding test coverageMikel Lindsaar2010-08-291-3/+37
|
* Make ActiveResource::InvalidRequestError more user friendlyMikel Lindsaar2010-08-251-2/+6
| | | | Signed-off-by: Xavier Noria <fxn@hashref.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-4/+4
| | | | 's/[ \t]*$//' -i {} \;)
* adds missing requires for Object#tryXavier Noria2010-08-091-1/+5
|
* Fix bug where ActiveResource::HttpMock would overwrite Accept/Content-Type ↵Elomar França2010-06-241-2/+14
| | | | | | header to application/xml [#4939 state:resolved] Signed-off-by: José Valim <jose.valim@gmail.com>
* fix stack trace lines on class_evalSantiago Pastorino2010-04-091-2/+2
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Setup ActiveResource autoloadsJoshua Peek2009-06-081-1/+0
|
* Cherry pick Active Support dependencies. Autoload.Jeremy Kemper2009-05-061-1/+6
|
* Fix example and exception messageJeremy Kemper2009-02-061-2/+2
|
* Work around mock request hashing problem on 1.9 and jrubyJeremy Kemper2009-02-061-42/+24
|
* Inline code comments for class_eval/module_eval [#1657 state:resolved]Xavier Noria2008-12-281-0/+8
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Format related patches to support serializing data out in the correct format ↵Rasik Pandey2008-08-291-1/+1
| | | | | | | with correct http request headers per http method type [#450 state:resolved] Signed-off-by: Tarmo Tänav <tarmo@itech.ee> Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Merge with docrails.Pratik Naik2008-07-161-1/+1
|
* Merge docrails.Pratik Naik2008-05-251-3/+74
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Use HEAD instead of GET inside exists? Closes #11062 [bscofield]Michael Koziarski2008-02-091-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compatibilityJeremy Kemper2007-12-211-7/+6
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8462 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Correct empty response handling. Closes #10445.Jeremy Kemper2007-12-101-2/+13
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8364 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveResource.format= which defaults to :xml but can also be set to ↵David Heinemeier Hansson2007-09-201-1/+6
| | | | | | :json [DHH]. Added one-off declarations of mock behavior [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7518 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added support for calling custom methods #6979 [rwdaigle]David Heinemeier Hansson2007-04-261-0/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6584 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Disregard namespaces from the default element name, so Highrise::Person will ↵David Heinemeier Hansson2007-04-191-1/+1
| | | | | | just try to fetch from "/people", not "/highrise/people" [DHH] Added that saves which get a body response (and not just a 201) will use that response to update themselves [DHH] Fixed constant warning when fetching the same object multiple times [DHH] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6539 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Mega documentation patches. #7025, #7069 [rwdaigle]Rick Olson2007-01-161-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5962 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* HttpMock InvalidRequestError inspects the mismatched requestJeremy Kemper2006-12-211-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5768 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* move http_mock to lib so others can use it in their Ares testsJeremy Kemper2006-12-211-0/+123
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5766 5ecf4fe2-1ee6-0310-87b1-e25e094e27de