Refactoring tests and Validation callbacks
This commit is contained in:
parent
ea4325f5bf
commit
3579e0e334
47 changed files with 142 additions and 142 deletions
8
spec/fixtures/models/event.rb
vendored
Normal file
8
spec/fixtures/models/event.rb
vendored
Normal 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
|
Loading…
Add table
Add a link
Reference in a new issue