aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test
Commit message (Collapse)AuthorAgeFilesLines
* Move mocha down below initial T::U require and bump version to 0.9.7 [#2858 ↵Yehuda Katz + Carl Lerche2009-07-011-3/+1
| | | | state:resolved]
* Setup ActiveResource autoloadsJoshua Peek2009-06-081-1/+0
|
* Merge branch 'master' into active_modelJoshua Peek2009-05-294-10/+8
|\ | | | | | | | | | | | | | | | | | | | | Conflicts: activemodel/lib/active_model/core.rb activemodel/test/cases/state_machine/event_test.rb activemodel/test/cases/state_machine/state_transition_test.rb activerecord/lib/active_record/validations.rb activerecord/test/cases/validations/i18n_validation_test.rb activeresource/lib/active_resource.rb activeresource/test/abstract_unit.rb
| * Cherry-pick core extensionsJeremy Kemper2009-05-133-0/+3
| |
| * Fix tests on 1.8.6Jeremy Kemper2009-05-061-0/+1
| |
| * Cherry pick Active Support dependencies. Autoload.Jeremy Kemper2009-05-062-7/+4
| |
* | Deprecate Errors#on_base/add_to_base/invalid?/each_fullPratik Naik2009-03-212-2/+5
| |
* | Fix ActiveResource::Errors deprecation messagesPratik Naik2009-03-201-2/+2
| |
* | Make Active Resource use ActiveModel::ErrorsPratik Naik2009-03-191-1/+1
|/
* 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