Refactoring tests and Validation callbacks

This commit is contained in:
Sam Lown 2011-06-09 01:05:22 +02:00
parent ea4325f5bf
commit 3579e0e334
47 changed files with 142 additions and 142 deletions

8
spec/fixtures/models/event.rb vendored Normal file
View file

@ -0,0 +1,8 @@
class Event < CouchRest::Model::Base
use_database DB
property :subject
property :occurs_at, Time, :init_method => 'parse'
property :end_date, Date, :init_method => 'parse'
end