2005-01-10 19:07:35 -05:00
|
|
|
ENV["RAILS_ENV"] = "test"
|
2005-06-16 02:08:55 -04:00
|
|
|
|
|
|
|
# Expand the path to environment so that Ruby does not load it multiple times
|
|
|
|
# File.expand_path can be removed if Ruby 1.9 is in use.
|
|
|
|
require File.expand_path(File.dirname(__FILE__) + "/../config/environment")
|
2004-12-15 06:30:09 -05:00
|
|
|
require 'application'
|
2004-11-23 20:04:44 -05:00
|
|
|
|
|
|
|
require 'test/unit'
|
|
|
|
require 'active_record/fixtures'
|
|
|
|
require 'action_controller/test_process'
|
2005-03-06 09:01:52 -05:00
|
|
|
require 'action_web_service/test_invoke'
|
2004-12-13 18:47:27 -05:00
|
|
|
require 'breakpoint'
|
2004-11-23 20:04:44 -05:00
|
|
|
|
2005-03-06 09:01:52 -05:00
|
|
|
Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/"
|
2005-07-04 05:24:31 -04:00
|
|
|
|
|
|
|
class Test::Unit::TestCase
|
|
|
|
# Turn these on to use transactional fixtures with table_name(:fixture_name) instantiation of fixtures
|
|
|
|
# self.use_transactional_fixtures = true
|
|
|
|
# self.use_instantiated_fixtures = false
|
|
|
|
|
2005-07-04 05:27:55 -04:00
|
|
|
def create_fixtures(*table_names)
|
|
|
|
Fixtures.create_fixtures(File.dirname(__FILE__) + "/fixtures", table_names)
|
|
|
|
end
|
|
|
|
|
|
|
|
# Add more helper methods to be used by all tests here...
|
|
|
|
end
|