Upgraded Rails and RSpec
[monkeycharger.git] / vendor / rails / railties / lib / test_help.rb
blob3b91438c0820bd39730de48f17931c9080341f4a
1 require_dependency 'application'
3 # Make double-sure the RAILS_ENV is set to test,
4 # so fixtures are loaded to the right database
5 silence_warnings { RAILS_ENV = "test" }
7 require 'test/unit'
8 require 'active_support/test_case'
9 require 'active_record/fixtures'
10 require 'action_controller/test_case'
11 require 'action_controller/test_process'
12 require 'action_controller/integration'
13 require 'action_mailer/test_case' if defined?(ActionMailer)
15 Test::Unit::TestCase.fixture_path = RAILS_ROOT + "/test/fixtures/"
16 ActionController::IntegrationTest.fixture_path = Test::Unit::TestCase.fixture_path
18 def create_fixtures(*table_names)
19   Fixtures.create_fixtures(Test::Unit::TestCase.fixture_path, table_names)
20 end