aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test
Commit message (Collapse)AuthorAgeFilesLines
* Strip invalid leading whitespace error uncovered by nokogiriJeremy Kemper2009-03-101-1/+1
|
* Ruby 1.9 compat: rename deprecated assert_raises to assert_raise.Jeremy Kemper2009-03-082-14/+14
| | | | [#1617 state:resolved]
* Ensure Active Support is loaded locally rather than from RubyGems. [#1620 ↵Jeremy Kemper2009-03-081-0/+1
| | | | state:committed]
* Prefer tap to returningJeremy Kemper2009-02-061-3/+2
|
* Require rubygemsJeremy Kemper2009-02-031-1/+1
|
* Bump mocha requirement for Ruby 1.9 compat. Remove uses_mocha.Jeremy Kemper2009-02-032-22/+16
|
* Improve exception handling when Location header is invalid. [#1192 ↵Bob Aman2009-01-281-1/+14
| | | | | | state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* ActiveResource#eqls? and == should not take into account object identity and ↵Rasik Pandey2009-01-281-0/+9
| | | | | | prefix options should be considered. [#1098 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Ruby 1.9 compat: don't shadow local var with block argJeremy Kemper2008-11-221-1/+1
|
* Fix indentation mismatchesJeremy Kemper2008-11-222-56/+56
|
* Silence parens warningJeremy Kemper2008-11-071-1/+1
|
* Fixed that ActiveResource#post would post an empty string when it shouldn't ↵David Heinemeier Hansson2008-10-301-0/+2
| | | | be posting anything (Paolo Angelini) [#525 state:committed]
* Add ActiveResource::Base#to_xml and ActiveResource::Base#to_json methods. ↵Cody Fauser2008-10-071-0/+17
| | | | | | [#1011 state:resolved] Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* ActiveResource can load array of strings, like serialize :bar, ArrayMatthew Moore2008-10-051-0/+24
| | | | | Signed-off-by: rick <technoweenie@gmail.com> [#1055 state:resolved]
* 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-314-15/+15
| | | | | | | | | | but it has since been removed from 1.9. Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net> Conflicts: actionpack/test/controller/layout_test.rb
* Format related patches to support serializing data out in the correct format ↵Rasik Pandey2008-08-293-14/+25
| | | | | | | 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>
* Clear prefix_parameters cache when setting prefixTarmo Tänav2008-08-231-0/+9
|
* Add ActiveResource::Base.find(:last). [#754 state:resolved]Adrian Mugnolo2008-08-221-46/+52
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>
* Update uses_mocha in ActionMailer and ActiveResourceJoshua Peek2008-07-191-9/+13
|
* Fixes parsing deep nested resources from XML. [#380 state:resolved]Luis Hurtado2008-06-092-0/+51
|
* Rescue from Timeout::Error in ActiveResource::Connection.Cheah Chu Yeow2008-04-222-1/+22
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Introduce ActiveResource::Base.timeout. This allows a timeout to be set on ↵Cheah Chu Yeow2008-04-222-0/+71
| | | | | | 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>
* Add #clone. Closes #7352 [Ryan Daigle, thechrisoshow]Jeremy Kemper2008-03-281-0/+35
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9121 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed that to_param should be used and honored instead of hardcoding the id ↵David Heinemeier Hansson2008-03-281-28/+106
| | | | | | (closes #11406) [gspiers] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@9114 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* URI.decode site username/password. Closes #11169 [Ernesto Jimenez]Jeremy Kemper2008-02-192-0/+16
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8900 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Add user and password configuration options to ActiveResource::Base, not ↵Michael Koziarski2008-02-183-3/+184
| | | | | | all credentials can be specified inline. Closes #11112 [ernesto.jimenez] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8891 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Use HEAD instead of GET inside exists? Closes #11062 [bscofield]Michael Koziarski2008-02-092-0/+12
| | | | 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-058-11/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8566 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* find_or_create_resource_for handles module nesting. Closes #10646.Jeremy Kemper2008-01-021-0/+35
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8525 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Allow setting ActiveResource::Base#format before #site. [rick]Rick Olson2007-12-281-0/+7
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8503 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Support agnostic formats when calling custom methods. Closes #10635 ↵Rick Olson2007-12-281-0/+34
| | | | | | [joerichsen] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8502 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* inherit from the new ActiveSupport::BlankSlate classRick Olson2007-12-281-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@8501 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat: move from the deprecated Base64 module to ↵Jeremy Kemper2007-12-182-5/+3
| | | | | | 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
* Add Base#to_param to Active Resource that quacks like ActiveRecord. Closes ↵Michael Koziarski2007-10-071-0/+7
| | | | | | #9557 [bradediger] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7764 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* BlankSlate -> BasicObjectJeremy Kemper2007-10-071-3/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7763 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Ruby 1.9 compat, consistent load pathsJeremy Kemper2007-10-026-18/+21
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7719 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix ARes tests under jruby. [tom.enebo@gmail.com]Michael Koziarski2007-09-241-1/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7615 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Increase test coverage (closes #8699, #8700) [josh]David Heinemeier Hansson2007-09-212-11/+32
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7532 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added ActiveResource.format= which defaults to :xml but can also be set to ↵David Heinemeier Hansson2007-09-201-0/+42
| | | | | | :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
* 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
* Fixes that using a subclass of an ARes object would cache a connection ↵Tobias Lütke2007-06-271-0/+30
| | | | | | object based of its parent's site variable. Changing the parent's site would have no effect on the descentent objects. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7143 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fix reload error when path prefix is used. Closes #8727.Jeremy Kemper2007-06-221-0/+11
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7082 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Added proper handling of arrays. Closes #8537 [hasmanyjosh]Rick Olson2007-06-213-9/+14
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@7074 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Fixed query methods on resources. [Cody Fauser]Tobias Lütke2007-06-081-0/+1
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6972 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* pass the prefix_options to the instantiated record when using find without a ↵Rick Olson2007-06-011-1/+9
| | | | | | specific id. Closes #8544 [alloy] git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6925 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
* Handle string and symbol param keys when splitting params into prefix params ↵Rick Olson2007-05-091-0/+4
| | | | | | and query params. git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6703 5ecf4fe2-1ee6-0310-87b1-e25e094e27de
* Make respond_to? work as expectedTobias Lütke2007-05-041-0/+8
| | | | git-svn-id: http://svn-commit.rubyonrails.org/rails/trunk@6657 5ecf4fe2-1ee6-0310-87b1-e25e094e27de