2005-01-11 00:07:35 +00:00
|
|
|
ENV["RAILS_ENV"] = "test"
|
2005-06-16 06:08:55 +00: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 11:30:09 +00:00
|
|
|
require 'application'
|
2004-11-24 01:04:44 +00:00
|
|
|
|
|
|
|
require 'test/unit'
|
|
|
|
require 'active_record/fixtures'
|
|
|
|
require 'action_controller/test_process'
|
2005-03-06 14:01:52 +00:00
|
|
|
require 'action_web_service/test_invoke'
|
2004-12-13 23:47:27 +00:00
|
|
|
require 'breakpoint'
|
2004-11-24 01:04:44 +00:00
|
|
|
|
2005-03-06 14:01:52 +00:00
|
|
|
Test::Unit::TestCase.fixture_path = File.dirname(__FILE__) + "/fixtures/"
|
2005-07-04 09:24:31 +00: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 09:27:55 +00: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
|