Changeset 402
- Timestamp:
- 04/23/07 20:15:00 (1 year ago)
- Files:
-
- branches/mental/radiant/test/test_helper.rb (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/mental/radiant/test/test_helper.rb
r400 r402 1 1 unless defined? TEST_ROOT 2 2 ENV["RAILS_ENV"] = "test" 3 3 4 4 require 'test/unit' 5 6 require 'pathname' 7 TEST_ROOT = Pathname.new(File.expand_path(File.dirname(__FILE__))).cleanpath(true).to_s 5 6 TEST_ROOT = File.expand_path(File.dirname(__FILE__)) 8 7 9 8 if env_file = ENV["RADIANT_ENV_FILE"] … … 13 12 end 14 13 require 'test_help' 15 14 16 15 class Test::Unit::TestCase 17 16 # Transactional fixtures accelerate your tests by wrapping each test method … … 28 27 # is recommended. 29 28 self.use_transactional_fixtures = true 30 29 31 30 # Instantiated fixtures are slow, but give you @david where otherwise you 32 31 # would need people(:david). If you don't want to migrate your existing
