aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/connection_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* HTTP Accept headerEdgar J. Suarez2008-09-181-2/+10
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Get rid of 'Object#send!'. It was originally added because it's in Ruby 1.9, ↵Jeremy Kemper2008-08-311-1/+1
| | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* Rescue from Timeout::Error in ActiveResource::Connection.Cheah Chu Yeow2008-04-221-0/+9
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Introduce ActiveResource::Base.timeout. This allows a timeout to be set on ↵Cheah Chu Yeow2008-04-221-0/+5
| | | | | | the internal Net::HTTP instance ARes uses (default is 60 seconds). Setting a low timeout allows ARes clients to fail-fast in the event of a unresponsive/crashed server, rather than cause cascading failures in your application. Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Use HEAD instead of GET inside exists? Closes #11062 [bscofield]Michael Koziarski2008-02-091-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8827 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* require abstract_unit directly since test is in load pathJeremy Kemper2008-01-051-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8566 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: move from the deprecated Base64 module to ↵Jeremy Kemper2007-12-181-1/+0
| | | | | | ActiveSupport::Base64. Closes #10554. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8433 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added more specific exceptions for 400, 401, and 403 (all descending from ↵David Heinemeier Hansson2007-12-141-1/+10
| | | | | | ClientError so existing rescues will work) (closes #10326) [trek] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8390 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-021-2/+2
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Raise ActiveResource::Redirection on 301,302 http codeTobias Lütke2007-08-091-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7297 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper handling of arrays. Closes #8537 [hasmanyjosh]Rick Olson2007-06-211-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Recognize and raise an exception on 405 Method Not Allowed responses. Closes ↵Jeremy Kemper2007-05-261-0/+13
| | | | | | #7692. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6864 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add support for setting custom headers per ActiveResource model [Rick]Rick Olson2007-04-291-0/+25
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6624 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
* Interpret 422 Unprocessable Entity as ResourceInvalid. Closes #7097.Jeremy Kemper2007-01-171-3/+3
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5967 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix issues with ActiveResource collection handling. Closes #6291. [bmilekic]Rick Olson2006-12-121-3/+28
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5714 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* *_path instance methods. Check for missing/invalid site uri. http_mock ↵Jeremy Kemper2006-12-051-11/+21
| | | | | | response takes message arg, extracts numeric code. Tests log to test/debug.log git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5680 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add Basic HTTP Authentication to ActiveResource (closes #6305). [jonathan]Rick Olson2006-09-291-0/+40
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5208 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Optimistic locking: raise ActiveResource::ResourceConflict on 409 Conflict ↵Jeremy Kemper2006-09-091-0/+3
| | | | | | response. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5078 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Basic validation support [Rick Olson]Rick Olson2006-09-081-1/+4
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@5068 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* 200...400 are valid response codes. PUT and POST request bodies default to ''.Jeremy Kemper2006-08-311-5/+36
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4887 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Initial check-in of Active ResourseDavid Heinemeier Hansson2006-06-251-0/+11
git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@4492 5ecf4fe2-1ee6-0310-87b1-e25e094e27de