Sha256: d593b9b9a61aae5c7a3013e7ff4fa51f602486d09c26859b1326c5d16ba9a9dd

Contents?: true

Size: 644 Bytes

Versions: 1

Compression:

Stored size: 644 Bytes

Contents

require "rubygems"
require "rspec"
require "factory_girl"
require "faker"
require "rails"
require "active_record"
require "active_support"

# Establish DB Connection
config = YAML::load(IO.read(File.join(File.dirname(__FILE__), 'db', 'database.yml')))
ActiveRecord::Base.configurations = {'test' => config[ENV['DB'] || 'sqlite3']}
ActiveRecord::Base.establish_connection(ActiveRecord::Base.configurations['test'])

# Load Test Schema into the Database
load(File.dirname(__FILE__) + "/db/schema.rb")

require File.dirname(__FILE__) + '/../init'

# Load Factories:
Dir[File.join(File.dirname(__FILE__), "factories/**/*.rb")].each {|f| require f}

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
validates_lengths_from_database-0.0.2 spec/spec_helper.rb