aboutsummaryrefslogtreecommitdiffstats
path: root/activeresource/test/cases/validations_test.rb
Commit message (Collapse)AuthorAgeFilesLines
* updated all the tests in ARes to work with jsonJosh Kalderimis2011-05-181-2/+2
|
* Active Resource typos.R.T. Lechow2011-03-051-1/+1
|
* ActiveResource validation tests did not test ActiveModel validations. Adjust ↵Ken Mazaika2011-02-151-0/+6
| | | | | | the test to be done the Rails3 way. Signed-off-by: Santiago Pastorino <santiago@wyeworks.com>
* Remove all deprecation warnings in activeresourceCarlos Antonio da Silva2010-09-061-8/+0
| | | | Signed-off-by: José Valim <jose.valim@gmail.com>
* Deletes trailing whitespaces (over text files only find * -type f -exec sed ↵Santiago Pastorino2010-08-141-1/+1
| | | | 's/[ \t]*$//' -i {} \;)
* save(false) is gone, use save(:validate => false) instead.José Valim2010-01-171-0/+13
|
* 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>