Sha256: 5aafd13daf5ff6c76c0c7147b39ca806e552b99120326f0c08ca1002805b5b19

Contents?: true

Size: 453 Bytes

Versions: 20

Compression:

Stored size: 453 Bytes

Contents

# frozen_string_literal: true

require 'rubygems'
require 'bundler/setup'
require 'active_record'
require_relative '../lib/rails-pg-extras'

ENV["DATABASE_URL"] ||= "postgresql://postgres:secret@localhost:5432/rails-pg-extras-test"

RSpec.configure do |config|
  config.before :suite do
    ActiveRecord::Base.establish_connection(
      ENV.fetch("DATABASE_URL")
    )
  end

  config.after :suite do
    ActiveRecord::Base.remove_connection
  end
end

Version data entries

20 entries across 20 versions & 1 rubygems

Version Path
rails-pg-extras-1.6.0 spec/spec_helper.rb
rails-pg-extras-1.5.3 spec/spec_helper.rb
rails-pg-extras-1.5.2 spec/spec_helper.rb
rails-pg-extras-1.5.1 spec/spec_helper.rb
rails-pg-extras-1.5.0 spec/spec_helper.rb
rails-pg-extras-1.4.0 spec/spec_helper.rb
rails-pg-extras-1.3.1 spec/spec_helper.rb
rails-pg-extras-1.3.0 spec/spec_helper.rb
rails-pg-extras-1.2.4 spec/spec_helper.rb
rails-pg-extras-1.2.3 spec/spec_helper.rb
rails-pg-extras-1.2.2 spec/spec_helper.rb
rails-pg-extras-1.2.1 spec/spec_helper.rb
rails-pg-extras-1.2.0 spec/spec_helper.rb
rails-pg-extras-1.1.0 spec/spec_helper.rb
rails-pg-extras-1.0.0 spec/spec_helper.rb
rails-pg-extras-0.7.0 spec/spec_helper.rb
rails-pg-extras-0.6.2 spec/spec_helper.rb
rails-pg-extras-0.6.1 spec/spec_helper.rb
rails-pg-extras-0.6.0 spec/spec_helper.rb
rails-pg-extras-0.5.2 spec/spec_helper.rb