aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/cases/base_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix failing specYehuda Katz2010-02-081-0/+5
|
* method_missing errors on activeresource tests, mocha is not required thereSantiago Pastorino2010-02-051-0/+1
| | | | | | [#3825 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Reorganize autoloads:Carlhuda2009-12-021-3/+3
| | | | | | | | | | | | | | | | | | | | | * A new module (ActiveSupport::Autoload) is provide that extends autoloading with new behavior. * All autoloads in modules that have extended ActiveSupport::Autoload will be eagerly required in threadsafe environments * Autoloads can optionally leave off the path if the path is the same as full_constant_name.underscore * It is possible to specify that a group of autoloads live under an additional path. For instance, all of ActionDispatch's middlewares are ActionDispatch::MiddlewareName, but they live under "action_dispatch/middlewares/middleware_name" * It is possible to specify that a group of autoloads are all found at the same path. For instance, a number of exceptions might all be declared there. * One consequence of this is that testing-related constants are not autoloaded. To get the testing helpers for a given component, require "component_name/test_case". For instance, "action_controller/test_case". * test_help.rb, which is automatically required by a Rails application's test helper, requires the test_case.rb for all active components, so this change will not be disruptive in existing or new applications.
* Digest auth option for ActiveResource.pivotal2009-10-151-0/+6
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Cleanup whitespace introduced in 8377646 and f4f6888Joshua Peek2009-10-021-4/+4
|
* add indifferent access to the attributesTaryn East2009-10-021-0/+15
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* update_attribute(s) added to Active ResourceTaryn East2009-10-021-2/+51
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Added save! which raises ResourceInvalid unless valid?taryn2009-08-191-1/+7
| | | | | | | | | | | | | | | Similar to Active Record - it will raise ActiveResouce::ResourceInvalid if the resource is not valid (ie if <tt>valid?</tt> returns false) However - does not raise ActiveResource::ResourceNotFound if the callbacks fail (callbacks have not yet been implemented) - it will just try to save and raise if the callbacks all fail. This is not ideal behaviour - but will do until we decide to change the behaviour of save_with_validations to actually raise (rather than catch) the ResourceInvalid exception. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Pulled find-based tests into their own test case. This matches Active ↵taryn2009-08-191-76/+0
| | | | | | Record, and allows us to have one places where all find-tests are located, which will help when adding dynamic finders later. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Moved all test cases into a new test/cases directory to match Active Record ↵taryn2009-08-191-0/+1039
test directory structure. Signed-off-by: Joshua Peek <josh@joshpeek.com>