Sha256: 5f64c613ac17c231621ed0a4a903e5315c26ac44a5b836f3964034731d5334a5

Contents?: true

Size: 634 Bytes

Versions: 12

Compression:

Stored size: 634 Bytes

Contents

if ENV.key?('CODECLIMATE_REPO_TOKEN')
  require "codeclimate-test-reporter"
  CodeClimate::TestReporter.start
end
if ENV['START_SIMPLECOV'].to_i == 1
  require 'simplecov'
  SimpleCov.start do
    add_filter "#{File.basename(File.dirname(__FILE__))}/"
  end
end

require 'active_record'
$:.unshift File.join(File.dirname(__FILE__), '..', 'lib')
require 'active_record/database_mutex'

ActiveRecord::Base.establish_connection(
  :adapter  => "mysql2",
  :database => ENV['DATABASE'] || "test",
  :username => ENV['USER'],
  :password => ENV['PASSWORD'],
  :host     => ENV['HOST'] || 'localhost'
)
require 'test/unit'
require 'byebug'

Version data entries

12 entries across 12 versions & 1 rubygems

Version Path
active_record_mutex-2.4.0 test/test_helper.rb
active_record_mutex-2.3.8 test/test_helper.rb
active_record_mutex-2.3.7 test/test_helper.rb
active_record_mutex-2.3.6 test/test_helper.rb
active_record_mutex-2.3.5 test/test_helper.rb
active_record_mutex-2.3.4 test/test_helper.rb
active_record_mutex-2.3.3 test/test_helper.rb
active_record_mutex-2.3.2 test/test_helper.rb
active_record_mutex-2.3.1 test/test_helper.rb
active_record_mutex-2.3.0 test/test_helper.rb
active_record_mutex-2.2.1 test/test_helper.rb
active_record_mutex-2.2.0 test/test_helper.rb