Sha256: 24c9d73aa8e4f5f74e2a2e3ab5e96f3c39c9493fa749dc3835fe7a3f6737eafb

Contents?: true

Size: 732 Bytes

Versions: 3

Compression:

Stored size: 732 Bytes

Contents

$LOAD_PATH.unshift(File.dirname(__FILE__) + '/../lib')
require 'test/unit'
require 'rubygems'
require 'activerecord'

begin
  require 'sqlite3'
rescue LoadError
  gem 'sqlite3-ruby'
  retry
end

ActiveRecord::Base.establish_connection({"adapter" => "sqlite3", "database" => 'test.sqlite3'})
begin
  ActiveRecord::Base.connection.execute("drop table mock_records");
  ActiveRecord::Base.connection.execute("drop table foos");
  ActiveRecord::Base.connection.execute("drop table bars");
rescue
end
ActiveRecord::Base.connection.execute("create table mock_records(id int)");
ActiveRecord::Base.connection.execute("create table foos(id int)");
ActiveRecord::Base.connection.execute("create table bars(id int)");

require 'after_commit'

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
after_commit-1.0.5 test/test_helper.rb
after_commit-1.0.4 test/test_helper.rb
after_commit-1.0.3 test/test_helper.rb