require 'bundler' Bundler.require(:default, :test) require 'rspec/core' require './lib/groovy' RSpec.configure do |config| config.before(:each) do # Groonga::Context.default = nil end config.after(:suite) do FileUtils.rm_rf('tmp') end end 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 end end # load_schema!