Sha256: 7c1c8466b23099e5b03c05228f9369717bd99b3c0132e7610f21da0173017416

Contents?: true

Size: 733 Bytes

Versions: 3

Compression:

Stored size: 733 Bytes

Contents

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

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 & 2 rubygems

Version Path
after_commit-1.0.6 test/test_helper.rb
larsklevan-after_commit-1.0.6 test/test_helper.rb
larsklevan-after_commit-1.0.5 test/test_helper.rb