examples/store-api-tests/spec/api/restspec/schemas.rb in restspec-0.0.4 vs examples/store-api-tests/spec/api/restspec/schemas.rb in restspec-0.1

- old
+ new

@@ -2,15 +2,16 @@ attribute :created_at, datetime, :for => [:checks] attribute :updated_at, datetime, :for => [:checks] end schema :product do + include_attributes :timestamps + attribute :name, string attribute :code, string attribute :price, decimal | decimal_string attribute :category_id, schema_id(:category) attribute :category, embedded_schema(:category), :for => [:checks] - include_attributes :timestamps end schema :category do attribute :name, string end