mirror of
https://github.com/TracksApp/tracks.git
synced 2026-02-25 00:24:07 +01:00
14 lines
396 B
Ruby
14 lines
396 B
Ruby
|
|
dirname = File.dirname(__FILE__)
|
||
|
|
require File.join(dirname, '..', 'boot')
|
||
|
|
require File.join(dirname, 'activerecord_test_connector')
|
||
|
|
|
||
|
|
# setup the connection
|
||
|
|
ActiveRecordTestConnector.setup
|
||
|
|
|
||
|
|
# load all fixtures
|
||
|
|
fixture_path = File.join(dirname, '..', 'fixtures')
|
||
|
|
Fixtures.create_fixtures(fixture_path, ActiveRecord::Base.connection.tables)
|
||
|
|
|
||
|
|
require 'will_paginate'
|
||
|
|
WillPaginate.enable_activerecord
|