Changeset 402

Show
Ignore:
Timestamp:
04/23/07 20:15:00 (1 year ago)
Author:
jlong
Message:

mental: tweaked test_helper

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mental/radiant/test/test_helper.rb

    r400 r402  
    11unless defined? TEST_ROOT 
    22  ENV["RAILS_ENV"] = "test" 
    3  
     3   
    44  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__)) 
    87   
    98  if env_file = ENV["RADIANT_ENV_FILE"] 
     
    1312  end 
    1413  require 'test_help' 
    15  
     14   
    1615  class Test::Unit::TestCase 
    1716    # Transactional fixtures accelerate your tests by wrapping each test method 
     
    2827    # is recommended. 
    2928    self.use_transactional_fixtures = true 
    30  
     29     
    3130    # Instantiated fixtures are slow, but give you @david where otherwise you 
    3231    # would need people(:david).  If you don't want to migrate your existing