1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/activeresource/test
taryn 328ba3b333 Added save! which raises ResourceInvalid unless valid?
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>
2009-08-19 09:05:02 -05:00
..
cases Added save! which raises ResourceInvalid unless valid? 2009-08-19 09:05:02 -05:00
fixtures Added validations to ActiveResource. Added a smoke test to see if we can add a validation and use it, and add a validates callback and use it. 2009-08-19 09:03:17 -05:00
abstract_unit.rb Move mocha down below initial T::U require and bump version to 0.9.7 [#2858 state:resolved] 2009-07-01 11:53:17 -07:00
connection_test.rb Active Resource recognizes 410 as Resource Gone now [#2316 state:resolved] [Jordan Brough, Jatinder Singh] 2009-08-09 22:56:32 +01:00
setter_trap.rb Prefer tap to returning 2009-02-06 12:18:24 -08:00