aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test
Commit message (Collapse)AuthorAgeFilesLines
* Make ActiveResource serialize XML correctly when element_name is set.Santiago Pastorino2010-05-121-0/+36
| | | | | | [#4529] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Make use of to_xml and to_json in testsSantiago Pastorino2010-05-121-2/+7
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Reuse Active Model serialization in Active Resource. [#2584 state:committed]Santiago Pastorino2010-04-261-6/+22
| | | | Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Revert "create option to include_root_in_json for ActiveResource [#2584 ↵Jeremy Kemper2010-04-251-23/+6
| | | | | | | | | | state:committed]" This reverts commits 72f89b5d971b48a133c4c0af56fbeda35d738dae, 137d8e0b2fe9fcc4fdac6cbbd44ca010784e5972. Should reuse Active Model. [#2584 state:incomplete]
* Make this test pass on > 1.9Santiago Pastorino2010-04-191-1/+5
|
* create option to include_root_in_json for ActiveResource [#2584 state:committed]Santiago Pastorino2010-04-051-6/+19
|
* added require abstract_unit on setter_trap.rbSebastian Martinez2010-03-181-0/+2
| | | | Signed-off-by: wycats <wycats@gmail.com>
* Fix active_resource testsCarl Lerche2010-03-021-2/+3
|
* correct activeresource load pathJoshua Peek2010-02-281-1/+3
|
* no more warning ambiguous first argument; put parentheses or even spaces on ↵Santiago Pastorino2010-02-261-2/+2
| | | | log_subscriber_test
* Revert "Fix test load paths for those not using bundler"Carlhuda2010-02-232-8/+3
| | | | | | This reverts commit eec2d301d4ce9df9c71c1a5aa63053eb970b6818. This commit broke tests. You cannot have a file called "bundler" on the load path.
* Merge master.José Valim2010-02-172-3/+9
|\
| * Fix test load paths for those not using bundlerJoshua Peek2010-02-152-3/+9
| |
* | Rename Rails::Subscriber to Rails::LogSubscriberPrem Sichanugrist2010-02-161-5/+5
|/
* Fix isolated test fail due to missing mochaJeremy Kemper2010-02-101-0/+1
|
* Fix failing specYehuda Katz2010-02-082-1/+7
|
* 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>
* Get rails tests running on bundler 0.9Carl Lerche2010-01-311-7/+1
|
* Use format of ARes rather than content-type of remote errors to load errors.Jatinder Singh2010-01-271-0/+13
| | | | | | [#1956 state:committed] Signed-off-by: Jeremy Kemper <jeremy@bitsweat.net>
* Default to sync instrumentation.José Valim2010-01-211-11/+2
|
* save(false) is gone, use save(:validate => false) instead.José Valim2010-01-171-0/+13
|
* Add notifications to ActiveResource.José Valim2010-01-141-0/+39
|
* Autoload AMo test caseJoshua Peek2010-01-041-1/+0
|
* Autoload AS test caseJoshua Peek2010-01-041-1/+0
|
* Fix new schema test dependency on Hash#to_xmlJeremy Kemper2009-12-231-0/+1
|
* Use instance_eval for schema blockJoshua Peek2009-12-201-46/+56
|
* Rename define_schema => schemaJoshua Peek2009-12-201-18/+18
|
* Rename SchemaDefinition => SchemaJoshua Peek2009-12-201-24/+24
|
* define_schema for Active ResourceTaryn East2009-12-201-0/+409
| | | | Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fully expand relative rails framework paths and make sure we aren'tJoshua Peek2009-12-161-5/+3
| | | | adding any to the load path more than once.
* Reorganize autoloads:Carlhuda2009-12-022-3/+4
| | | | | | | | | | | | | | | | | | | | | * 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.
* Avoid adding component lib/ to load path multiple timesJoshua Peek2009-11-091-1/+3
|
* Symbol#to_proc is not needed for Ruby >= 1.8.7Xavier Noria2009-11-091-1/+0
|
* Have all the tests running off a single GemfileYehuda Katz + Carl Lerche2009-10-201-2/+8
|
* Fix testsJeremy Kemper2009-10-141-0/+1
|
* Digest auth option for ActiveResource.pivotal2009-10-153-24/+167
| | | | Signed-off-by: Michael Koziarski <michael@koziarski.com>
* Fix for Ruby 1.9 - define_method throws an exception under 1.9 if given ↵Chad Woolley2009-10-081-1/+1
| | | | | | incorrect number of args Signed-off-by: Carl Lerche <carllerche@mac.com>
* Ruby 1.9: Fix ActiveResource::ConnectionError#to_s when @response does not ↵Chad Woolley2009-10-081-1/+1
| | | | | | respond to #code or #message Signed-off-by: Carl Lerche <carllerche@mac.com>
* Cleanup whitespace introduced in 8377646 and f4f6888Joshua Peek2009-10-022-20/+13
|
* add indifferent access to the attributesTaryn East2009-10-022-0/+28
| | | | 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>
* Fix brittle content-type check. [#1956 state:committed]Jeremy Kemper2009-09-171-2/+2
|
* Fix failing ARes isolated testsJoshua Peek2009-09-052-1/+4
|
* Added first/last/all aliases for equivalent find scopestaryn2009-08-211-0/+38
| | | | | | | Just a copy from Active Record (with tests). Each is a warpper function for the equivalent scoped call to find eg first is a wrapper for find(:first) Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Added save! which raises ResourceInvalid unless valid?taryn2009-08-192-2/+14
| | | | | | | | | | | | | | | 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>
* Swallow ResourceNotFound error on find_everytaryn2009-08-191-0/+13
| | | | | | | | | | | | | | Active Record does not explode with RecordNotFound if you go looking for a collection of objects - it just returns nil. Thus Active Resource should also not explode. After all - finding no objects that match a set of conditions is not exceptional behaviour - unlike looking for a specific object with a given id (which you'd expect to exist). I've also added documentation to +find+ to reflect this. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Pulled find-based tests into their own test case. This matches Active ↵taryn2009-08-192-76/+182
| | | | | | 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-199-0/+0
| | | | | | test directory structure. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Added validations to ActiveResource. Added a smoke test to see if we can add ↵taryn2009-08-192-0/+74
| | | | | | a validation and use it, and add a validates callback and use it. Signed-off-by: Joshua Peek <josh@joshpeek.com>
* Fix ActiveResource load test for 64bit machines [#3051 state:resolved]Jatinder Singh2009-08-151-3/+3
| | | | Signed-off-by: Pratik Naik <pratiknaik@gmail.com>