spec/spec_helper.rb in predicate-2.6.0 vs spec/spec_helper.rb in predicate-2.7.0

- old
+ new

@@ -1,10 +1,26 @@ $LOAD_PATH.unshift File.expand_path('../../lib', __FILE__) -require "rspec" +require 'rspec' +require 'sequel' +require 'sqlite3' +require 'pg' require 'predicate' +require 'predicate/sequel' +require 'predicate/postgres' require_relative 'shared/a_predicate' +Sequel.extension :pg_array, :pg_array_ops module Helpers + + def create_items_database(db) + db.drop_table? :items + db.create_table :items do + primary_key :id + String :name + String :address + Float :price + end + end end RSpec.configure do |c| c.include Helpers