spec/spec_helper.rb in hari-0.0.4 vs spec/spec_helper.rb in hari-0.0.5
- old
+ new
@@ -5,11 +5,15 @@
require 'delorean'
require 'active_support/core_ext/numeric/time'
class TestEntity < Hari::Entity
property :name
- property :birth, type: Date
- property :points, type: Integer
+ property :country, default: 'US'
+ property :birth, type: Date
+ property :points, type: Integer
+ property :preferences, type: Hash
+ property :friends_ids, type: Array
+ property :male, type: Boolean, default: true
end
class TestNode < Hari::Node
property :name
end