Sha256: 162fb3d2b2ef956789921b142e23e9b18833406d75a8a40a20f58357878ee7c0
Contents?: true
Size: 956 Bytes
Versions: 1
Compression:
Stored size: 956 Bytes
Contents
lib = File.expand_path('../lib', __FILE__) $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) require 'rspec/its' require 'simplecov' require 'coveralls' SimpleCov.formatter = SimpleCov::Formatter::MultiFormatter.new([ SimpleCov::Formatter::HTMLFormatter, Coveralls::SimpleCov::Formatter ]) SimpleCov.start require 'activerecord-pedantmysql2-adapter' module TestSupport DB_CONFIG = { 'adapter' => 'pedant_mysql2', 'database' => 'pedant_mysql2_test', 'username' => 'root', 'password' => ENV['CI'] ? 'root' : nil, 'encoding' => 'utf8', 'host' => 'localhost', 'strict' => false, 'pool' => 5, }.freeze end ActiveRecord::Base.establish_connection(TestSupport::DB_CONFIG) Dir[File.expand_path(File.join(File.dirname(__FILE__), 'support', '**', '*.rb'))].each { |f| require f } RSpec.configure do |config| config.run_all_when_everything_filtered = true config.filter_run :focus config.order = 'random' end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
activerecord-pedantmysql2-adapter-1.3.0 | spec/spec_helper.rb |