Sha256: 7356d2f8f96a14797a5bf9768cb2b6dd4c49e94a54fd3928cfe87c6e36d07160

Contents?: true

Size: 306 Bytes

Versions: 2

Compression:

Stored size: 306 Bytes

Contents

require 'yaml'
require 'active_record'

system("mysql -uroot < spec/db_schema.sql")

module ActiveRecord
  class Base
    self.configurations = YAML.load_file(File.join(File.dirname(__FILE__), "database.yml"))
    establish_connection(configurations["test"])
  end
end

class User < ActiveRecord::Base
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
ebisu_connection-0.3.0 spec/prepare.rb
ebisu_connection-0.2.0 spec/prepare.rb