Changeset 505

Show
Ignore:
Timestamp:
09/30/07 15:03:32 (1 year ago)
Author:
seancribbs
Message:

Propagate test helper changes from r501 to extensions. Manage sass external with Piston.

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • trunk/extensions/aggregation/test/test_helper.rb

    r436 r505  
    22unless defined? RADIANT_ROOT 
    33  ENV["RAILS_ENV"] = "test" 
    4   require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/boot" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
    55end 
    66require "#{RADIANT_ROOT}/test/test_helper" 
  • trunk/extensions/examples/fuzzy_bears/test/test_helper.rb

    r444 r505  
    1 # Load the the environment 
     1# Load the environment 
    22unless defined? RADIANT_ROOT 
    33  ENV["RAILS_ENV"] = "test" 
    4   require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/boot" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
    55end 
    66require "#{RADIANT_ROOT}/test/test_helper" 
  • trunk/extensions/examples/hello_tag/test/test_helper.rb

    r406 r505  
    1 ENV["RAILS_ENV"] = "test" 
    2  
    3 require "../../../config/environment" 
    4 require 'test_help' 
     1# Load the environment 
     2unless defined? RADIANT_ROOT 
     3  ENV["RAILS_ENV"] = "test" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
     5end 
     6require "#{RADIANT_ROOT}/test/test_helper" 
    57 
    68class Test::Unit::TestCase 
    7   self.use_transactional_fixtures = true 
    8   self.use_instantiated_fixtures = false 
     9   
     10  # Include a helper to make testing Radius tags easier 
     11  test_helper :extension_tags 
     12   
     13  # Add the fixture directory to the fixture path 
     14  self.fixture_path << File.dirname(__FILE__) + "/fixtures" 
     15   
     16  # Add more helper methods to be used by all extension tests here... 
     17   
    918end 
  • trunk/extensions/forms/test/test_helper.rb

    r440 r505  
    22unless defined? RADIANT_ROOT 
    33  ENV["RAILS_ENV"] = "test" 
    4   require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/boot" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
    55end 
    66require "#{RADIANT_ROOT}/test/test_helper" 
  • trunk/extensions/import_export/test/test_helper.rb

    r406 r505  
    1 require File.dirname(__FILE__) + "/../../../../test/test_helper" unless defined? TEST_ROOT 
     1# Load the environment 
     2unless defined? RADIANT_ROOT 
     3  ENV["RAILS_ENV"] = "test" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
     5end 
     6require "#{RADIANT_ROOT}/test/test_helper" 
    27 
    3 class ImportExportExtensionTest < Test::Unit::TestCase 
    4   test_helper :extension_fixtures, :extension_tags 
    5   self.extension_fixture_path = File.dirname(__FILE__) + "/fixtures" 
     8class Test::Unit::TestCase 
     9   
     10  # Include a helper to make testing Radius tags easier 
     11  test_helper :extension_tags 
     12   
     13  # Add the fixture directory to the fixture path 
     14  self.fixture_path << File.dirname(__FILE__) + "/fixtures" 
     15   
     16  # Add more helper methods to be used by all extension tests here... 
     17   
    618end 
  • trunk/extensions/ldap/test/test_helper.rb

    r436 r505  
    22unless defined? RADIANT_ROOT 
    33  ENV["RAILS_ENV"] = "test" 
    4   require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/boot" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
    55end 
    66require "#{RADIANT_ROOT}/test/test_helper" 
  • trunk/extensions/link_roll/test/test_helper.rb

    r460 r505  
    1 # Load the the environment 
     1# Load the environment 
    22unless defined? RADIANT_ROOT 
    33  ENV["RAILS_ENV"] = "test" 
    4   require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/boot" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
    55end 
    66require "#{RADIANT_ROOT}/test/test_helper" 
  • trunk/extensions/mailer/test/test_helper.rb

    r436 r505  
    22unless defined? RADIANT_ROOT 
    33  ENV["RAILS_ENV"] = "test" 
    4   require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/boot" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
    55end 
    66require "#{RADIANT_ROOT}/test/test_helper" 
  • trunk/extensions/reorder/test/test_helper.rb

    r406 r505  
    1 require File.dirname(__FILE__) + "/../../../../test/test_helper" unless defined? TEST_ROOT 
     1# Load the environment 
     2unless defined? RADIANT_ROOT 
     3  ENV["RAILS_ENV"] = "test" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
     5end 
     6require "#{RADIANT_ROOT}/test/test_helper" 
    27 
    38class Test::Unit::TestCase 
    4   test_helper :extension_fixtures, :extension_tags 
    5   self.extension_fixture_path = File.dirname(__FILE__) + "/fixtures" 
     9   
     10  # Include a helper to make testing Radius tags easier 
     11  test_helper :extension_tags 
     12   
     13  # Add the fixture directory to the fixture path 
     14  self.fixture_path << File.dirname(__FILE__) + "/fixtures" 
     15   
     16  # Add more helper methods to be used by all extension tests here... 
     17   
    618end 
  • trunk/extensions/sass_filter/lib

    • Property svn:externals deleted
  • trunk/extensions/sass_filter/test/test_helper.rb

    r439 r505  
    1 # Load the the environment 
     1# Load the environment 
    22unless defined? RADIANT_ROOT 
    33  ENV["RAILS_ENV"] = "test" 
    4   require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/boot" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
    55end 
    66require "#{RADIANT_ROOT}/test/test_helper" 
  • trunk/extensions/search/test/test_helper.rb

    r436 r505  
    22unless defined? RADIANT_ROOT 
    33  ENV["RAILS_ENV"] = "test" 
    4   require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/boot" 
     4  require "#{File.expand_path(File.dirname(__FILE__) + "/../../../../")}/config/environment" 
    55end 
    66require "#{RADIANT_ROOT}/test/test_helper" 
  • trunk/extensions/shards/test/test_helper.rb

    r502 r505  
    1 # Load the the environment 
     1# Load the environment 
    22unless defined? RADIANT_ROOT 
    33  ENV["RAILS_ENV"] = "test" 
  • trunk/extensions/share_layouts/test/test_helper.rb

    r502 r505  
    1 # Load the the environment 
     1# Load the environment 
    22unless defined? RADIANT_ROOT 
    33  ENV["RAILS_ENV"] = "test"