aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/cases/validations_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* Fix failing ARes isolated testsJoshua Peek2009-09-051-1/+2
|
* 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>
* Moved all test cases into a new test/cases directory to match Active Record ↵taryn2009-08-191-0/+49
test directory structure. Signed-off-by: Joshua Peek <josh@joshpeek.com>