Sha256: c136deae1723ebed8a27d993eda68c4bcccdea7a78eedc7db9cd95c27334071b

Contents?: true

Size: 572 Bytes

Versions: 1

Compression:

Stored size: 572 Bytes

Contents

$:.unshift File.expand_path('../lib', __FILE__)

require 'active_support/all'
require 'rspec'
require 'mysql2'
require 'pg'

require 'activerecord_json_validator'

# Require our macros and extensions
Dir[File.expand_path('../../spec/support/macros/**/*.rb', __FILE__)].map(&method(:require))

RSpec.configure do |config|
  # Include our macros
  config.include DatabaseMacros
  config.include ModelMacros

  config.before :each do
    adapter = ENV['DB_ADAPTER'] || 'postgresql'
    setup_database(adapter: adapter, database: 'activerecord_json_validator_test')
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
activerecord_json_validator-0.3 spec/spec_helper.rb