Sha256: 4aa81f07f1199dc247fca8a34a002d8adfa95983838b6cedf718d0ab118c606d

Contents?: true

Size: 282 Bytes

Versions: 1

Compression:

Stored size: 282 Bytes

Contents

require 'yaml'

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

1 entries across 1 versions & 1 rubygems

Version Path
ebisu_connection-0.1.1 spec/prepare.rb