couchrest_model/spec
Simone Carletti f76517d0fa Narrow the rescued exception to avoid catching class evaluation errors that has nothing to to with the association.
Example:

    /Users/weppos/.rvm/gems/ruby-1.8.7-p330/gems/couchrest_model-1.0.0/lib/couchrest/model/associations.rb:29:in `belongs_to': Unable to convert class name into Constant for Document#dossier (RuntimeError)

although the real error is

    /Users/weppos/Projects/working/.../app/models/user.rb:56: undefined method `validates_uniqueness_of' for User:Class (NoMethodError)
2011-02-24 23:38:39 -03:00
..
couchrest Narrow the rescued exception to avoid catching class evaluation errors that has nothing to to with the association. 2011-02-24 23:38:39 -03:00
fixtures Use :validation callbacks, not the :validate callbacks reserved by ActiveModel, ensuring callbacks are actually run when they're supposed to be. 2011-02-01 14:32:38 -05:00
.gitignore move tmp dir for specs; 2009-01-08 22:18:06 -08:00
spec_helper.rb Using bundler 2011-01-16 22:43:07 -02:00