Changeset 393

Show
Ignore:
Timestamp:
04/22/07 08:36:55 (1 year ago)
Author:
seancribbs
Message:

mental: Resolved fixtures issues. Removes necessity for abstract test classes and extension fixtures, but not removing.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/mental/radiant/lib/generators/extension/templates/functional_test.rb

    r386 r393  
    11require File.dirname(__FILE__) + '/../test_helper' 
    22 
    3 class <%= class_name %>Test < <%= class_name %>TestCase 
     3class <%= class_name %>Test < Test::Unit::TestCase 
    44   
    55  # Replace this with your real tests. 
  • branches/mental/radiant/lib/generators/extension/templates/test_helper.rb

    r386 r393  
    11require File.dirname(__FILE__) + "/../../../../test/test_helper" unless defined? TEST_ROOT 
    22 
    3 class <%= class_name %>TestCase < Test::Unit::TestCase 
    4   test_helper :extension_fixtures, :extension_tags 
    5   self.extension_fixture_path = File.dirname(__FILE__) + "/fixtures" 
    6   self.abstract_testcase = true 
     3class Test::Unit::TestCase 
     4  test_helper :extension_tags 
     5  self.fixture_path << File.dirname(__FILE__) + "/fixtures" 
    76end 
  • branches/mental/radiant/test/test_helper.rb

    r333 r393  
    3535     
    3636    # Make sure instance installs know where fixtures are 
    37     self.fixture_path = "#{TEST_ROOT}/fixtures" 
     37    self.fixture_path = ["#{TEST_ROOT}/fixtures"] 
    3838     
    3939    # Session key stringification fix for Rails 1.2.2