spec/spec_helper.rb in dm-rspec-0.0.1 vs spec/spec_helper.rb in dm-rspec-0.0.2
- old
+ new
@@ -41,9 +41,10 @@
property :id, Serial
property :name, String
belongs_to :author
has n, :genres, :through => Resource
validates_presence_of :name
+ validates_length_of :name, :min => 10
end
class Author
include DataMapper::Resource
property :id, Serial