couchrest_model/spec/couchrest
Kostiantyn Kahanskyi 1b5c431053 Should be able to set contextual validations
Contextual validations are active __only__ within
an appropriate context: either ”create" or ”update”.

validates(:name, :presence => true, :on => :create)

validates(:name, :presence => {:on => :update})

See http://edgeguides.rubyonrails.org/active_record_validations_callbacks.html#on

Should fix https://github.com/couchrest/couchrest_model/pull/90
2011-06-08 22:54:35 +02:00
..
core_extensions Time handling improved to ensure UTC always used 2011-04-01 19:45:13 +02:00
designs Changing model_type_key one last time to 'type'. General doc refinements for 1.1.0.beta5 release 2011-04-30 13:13:38 +02:00
assocations_spec.rb Fixing dirty tracking on collection_of association type 2011-05-20 02:15:18 +02:00
attachment_spec.rb creating attachments accessor 2010-08-03 23:58:28 -03:00
base_spec.rb Support providing an initialization block when creating new models 2011-05-11 13:53:28 -06:00
casted_model_spec.rb Fixing issues with dirty tracking on nested models and related improvements 2011-04-20 16:44:49 +02:00
casted_spec.rb Renaming to CouchRest Model 2010-06-20 22:01:11 +02:00
class_proxy_spec.rb Implement #get! and #find! class methods 2011-05-30 21:57:28 -03:00
collection_spec.rb Should always include docs when paginating by Model##paginate 2011-06-06 12:51:02 +02:00
configuration_spec.rb Fixing issues when loading with rails 2011-04-30 00:34:12 +02:00
connection_spec.rb Fixing issues when loading with rails 2011-04-30 00:34:12 +02:00
design_doc_spec.rb Overriding couchrest's database delete method to ensure design cache is deleted 2011-05-19 00:37:17 +02:00
designs_spec.rb Adding filter support to design docs 2011-04-27 13:30:08 +02:00
dirty_spec.rb Casted array should notify changes on deletion 2011-06-07 20:59:14 -03:00
inherited_spec.rb Fixing documentation and two describes 2010-08-03 23:09:05 -03:00
persistence_spec.rb Should be able to set contextual validations 2011-06-08 22:54:35 +02:00
property_protection_spec.rb Renaming Attribute Protection and solving problem modifying the provided hash to the #attributes= method 2010-10-22 15:39:12 +02:00
property_spec.rb Should be able to assign a casted hash to a hash property 2011-06-07 20:57:48 -03:00
proxyable_spec.rb Fixing issues with proxying and new database code 2011-04-30 01:04:04 +02:00
subclass_spec.rb Refactoring design doc manipulation for a much simpler and more reliable approach 2011-04-17 02:46:33 +02:00
typecast_spec.rb Fixing issues with Ruby 1.8.7 2011-04-08 22:34:25 +02:00
validations_spec.rb Views for unique validations created on loading, not execution 2011-05-20 12:21:42 +02:00
view_spec.rb Finalizing support for automatic configuration 2011-04-29 23:06:31 +02:00