spec/spec_helper.rb in groovy-0.2.3 vs spec/spec_helper.rb in groovy-0.2.5
- old
+ new
@@ -11,19 +11,20 @@
config.after(:suite) do
FileUtils.rm_rf('tmp')
end
end
-class TestProduct
+class TestProduct
include Groovy::Model
end
def load_schema!(context_name)
TestProduct.load_schema context: context_name do |t|
t.boolean :visible
t.string :name
t.integer :price
t.string :tag_list
+ t.timestamps
end
end
# load_schema!
\ No newline at end of file