Sha256: 1fd17d715bf1be543142248e56af7a0a2b63f2fdde4af5988032bff71b1ea071

Contents?: true

Size: 492 Bytes

Versions: 5

Compression:

Stored size: 492 Bytes

Contents

require "sequel"
require "timecop"
require "pry"

Dir[File.expand_path("../support/*.rb", __FILE__)].each{|f| require f}
ENV["TZ"]="UTC"

DB = if DbHelpers.pg?
  `createdb sequel_bitemporal_test`
  Sequel.extension :pg_range, :pg_range_ops
  Sequel.postgres "sequel_bitemporal_test"
else
  Sequel.sqlite
end

if ENV["DEBUG"]
  require "logger"
  DB.loggers << Logger.new($stdout)
end

RSpec.configure do |config|
  config.include DbHelpers

  config.before :each do
    db_truncate
  end
end

Version data entries

5 entries across 5 versions & 1 rubygems

Version Path
sequel_bitemporal-0.6.16 spec/spec_helper.rb
sequel_bitemporal-0.6.15 spec/spec_helper.rb
sequel_bitemporal-0.6.14 spec/spec_helper.rb
sequel_bitemporal-0.6.13 spec/spec_helper.rb
sequel_bitemporal-0.6.12 spec/spec_helper.rb