Sha256: 3c91b266e6d535851b108fe4ff494961d06c79bfc68cdfc7c8ca32d122fa9799
Contents?: true
Size: 961 Bytes
Versions: 2
Compression:
Stored size: 961 Bytes
Contents
require "sequel" require "timecop" Dir[File.expand_path("../support/*.rb", __FILE__)].each{|f| require f} ENV["TZ"]="UTC" require "sequel_bitemporal" Sequel::Deprecation.output = false rspec_exclusions = {} DB = if DbHelpers.pg? `createdb sequel_bitemporal_test` Sequel.extension :pg_range, :pg_range_ops if ::Sequel::Plugins::Bitemporal.jruby? Sequel.connect "jdbc:postgresql://localhost/sequel_bitemporal_test" else Sequel.postgres "sequel_bitemporal_test" end else if Sequel::Plugins::Bitemporal.jruby? rspec_exclusions[:skip_jdbc_sqlite] = true Sequel::Model.plugin :typecast_on_load Sequel.connect "jdbc:sqlite::memory:" else Sequel.sqlite end end if ENV["DEBUG"] require "logger" DB.loggers << Logger.new($stdout) end RSpec.configure do |config| config.include DbHelpers config.filter_run_excluding rspec_exclusions config.disable_monkey_patching! config.before :each do db_truncate end end
Version data entries
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
sequel_bitemporal-0.10.0 | spec/spec_helper.rb |
sequel_bitemporal-0.9.1 | spec/spec_helper.rb |