Sha256: fc1c7d191836fdf3e2a7873760e50419ea44df223feede403f6da17997e8b40d
Contents?: true
Size: 1006 Bytes
Versions: 1
Compression:
Stored size: 1006 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', 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.example_status_persistence_file_path = '.rspec_status' config.filter_run focus: true config.run_all_when_everything_filtered = true config.order = :random config.expect_with :rspec do |c| c.syntax = :expect end config.after(:each) { User.delete_all } end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pgrel-0.3.0 | spec/spec_helper.rb |