Sha256: 17eb70dc03bcde37d78d711a74c33490a470af72b6882e58602ebfcf55b84743

Contents?: true

Size: 586 Bytes

Versions: 5

Compression:

Stored size: 586 Bytes

Contents

# frozen_string_literal: true

$LOAD_PATH.unshift File.expand_path('lib', __dir__)

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

require 'activerecord_json_validator'

# Require our macros and extensions
Dir[File.expand_path('../spec/support/macros/**/*.rb', __dir__)].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

5 entries across 5 versions & 1 rubygems

Version Path
activerecord_json_validator-3.0.0 spec/spec_helper.rb
activerecord_json_validator-2.1.5 spec/spec_helper.rb
activerecord_json_validator-2.1.4 spec/spec_helper.rb
activerecord_json_validator-2.1.3 spec/spec_helper.rb
activerecord_json_validator-2.1.2 spec/spec_helper.rb