foodsoft/vendor/plugins/will_paginate/test/lib/load_fixtures.rb

12 lines
297 B
Ruby
Raw Normal View History

2009-01-06 11:49:19 +01:00
require 'boot'
require 'lib/activerecord_test_connector'
# setup the connection
ActiveRecordTestConnector.setup
# load all fixtures
Fixtures.create_fixtures(ActiveRecordTestConnector::FIXTURES_PATH, ActiveRecord::Base.connection.tables)
require 'will_paginate'
WillPaginate.enable_activerecord