spec/spec_helper.rb in groovy-0.7.0 vs spec/spec_helper.rb in groovy-0.7.1

- old
+ new

@@ -14,15 +14,24 @@ config.after(:suite) do FileUtils.rm_rf('tmp') end end +class TestCategory + include Groovy::Model +end + class TestProduct include Groovy::Model end def load_schema!(context_name) + TestCategory.load_schema context: context_name do |t| + t.string :name + end + TestProduct.load_schema context: context_name do |t| + t.one :test_category t.boolean :visible t.string :name t.integer :price t.string :tag_list t.timestamps \ No newline at end of file