Sha256: 743980c9500760cc8afa18a2a9f944a372bfb71ae482703b4034126bae907dd8
Contents?: true
Size: 774 Bytes
Versions: 3
Compression:
Stored size: 774 Bytes
Contents
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib')) $LOAD_PATH.unshift(File.dirname(__FILE__)) if ENV['COVER'] require 'simplecov' SimpleCov.root File.join(File.dirname(__FILE__), '..') SimpleCov.start end require 'rspec' require 'pry-byebug' require 'active_record' require 'pg' require 'pgrel' ActiveRecord::Base.establish_connection( adapter: 'postgresql', host: 'localhost', username: 'pgrel', database: 'pgrel' ) connection = ActiveRecord::Base.connection unless connection.extension_enabled?('hstore') connection.enable_extension 'hstore' connection.commit_db_transaction end connection.reconnect! Dir["#{File.dirname(__FILE__)}/support/**/*.rb"].each { |f| require f } RSpec.configure do |config| config.mock_with :rspec end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pgrel-0.1.2 | spec/spec_helper.rb |
pgrel-0.1.1 | spec/spec_helper.rb |
pgrel-0.1.0 | spec/spec_helper.rb |