Sha256: 78ec7ce782cfea2edaabce899024127bce096045c10f4f5c6ca88cd0a0ea7f6f

Contents?: true

Size: 921 Bytes

Versions: 3

Compression:

Stored size: 921 Bytes

Contents

require 'rspec'
require 'fileutils'
require 'yaml'


$: << File.join(File.dirname(__FILE__), '..', 'lib')

require File.join(File.dirname(__FILE__), '..', 'init')


#TEST_DATABASE_FILE = File.join(File.dirname(__FILE__), 'test.sqlite3')

# Spec::Runner.configure do |config|
#   
# end

# def setup_database
#   File.unlink(TEST_DATABASE_FILE) if File.exist?(TEST_DATABASE_FILE)
#   ActiveRecord::Base.establish_connection(
#     "adapter" => "sqlite3", "timeout" => 5000, "database" => TEST_DATABASE_FILE
#   )
#   create_tables
# end
# 
# def create_tables
#   c = ActiveRecord::Base.connection
#   
#   c.create_table :sponsors, :force => true do |t|
#     t.string :name
#     t.string :address
#     t.string :city
#     t.string :state
#     t.string :zip
#     t.string :phone
#     t.string :fax
#     
#     t.timestamps
#   end
# end
# 
# setup_database
# 
# require File.join(File.dirname(__FILE__), 'models')

Version data entries

3 entries across 3 versions & 1 rubygems

Version Path
jackfs-0.0.3 spec/spec_helper.rb
jackfs-0.0.2 spec/spec_helper.rb
jackfs-0.0.1 spec/spec_helper.rb