Sha256: 4b0e311d40b383d2eb87a5765ecd5fc23997ddbc2027436deed1f48e7406a91f

Contents?: true

Size: 1.08 KB

Versions: 23

Compression:

Stored size: 1.08 KB

Contents

# allows testing with edge Rails by creating a test/rails symlink
RAILS_ROOT = linked_rails = File.dirname(__FILE__) + '/rails'
RAILS_ENV = 'test'

need_gems = false
if File.exists?(linked_rails) && !$:.include?(linked_rails + '/activesupport/lib')
  puts "[ using linked Rails ]"
  $:.unshift linked_rails + '/activesupport/lib'
  $:.unshift linked_rails + '/actionpack/lib'
else
  need_gems = true
end

# allows testing with edge Haml by creating a test/haml symlink
linked_haml = File.dirname(__FILE__) + '/haml'

if File.exists?(linked_haml) && !$:.include?(linked_haml + '/lib')
  puts "[ using linked Haml ]"
  $:.unshift linked_haml + '/lib'
else
  need_gems = true
end

require 'rubygems' if need_gems

require 'action_controller'
require 'action_view'
require 'haml'
require 'sass'
require 'sass/plugin'


require 'test/unit'

module Compass
  module TestCaseHelper
    def absolutize(path)
      if path.blank?
        File.dirname(__FILE__)
      elsif path[0] == ?/
        "#{File.dirname(__FILE__)}#{path}"
      else
        "#{File.dirname(__FILE__)}/#{path}"
      end
    end
  end
end

Version data entries

23 entries across 23 versions & 5 rubygems

Version Path
bsherman-compass-0.5.2 test/test_helper.rb
chriseppstein-compass-0.3.8 test/test_helper.rb
chriseppstein-compass-0.3.9 test/test_helper.rb
chriseppstein-compass-0.4.0 test/test_helper.rb
chriseppstein-compass-0.4.1 test/test_helper.rb
chriseppstein-compass-0.4.2 test/test_helper.rb
chriseppstein-compass-0.5.0 test/test_helper.rb
chriseppstein-compass-0.5.1 test/test_helper.rb
chriseppstein-compass-0.5.2 test/test_helper.rb
chriseppstein-compass-0.5.3 test/test_helper.rb
chriseppstein-compass-0.5.4 test/test_helper.rb
chriseppstein-compass-0.5.5 test/test_helper.rb
chriseppstein-compass-0.5.9 test/test_helper.rb
chriseppstein-compass-0.6.0 test/test_helper.rb
chriseppstein-compass-0.6.1 test/test_helper.rb
chriseppstein-compass-0.6.2 test/test_helper.rb
chriseppstein-compass-0.6.3 test/test_helper.rb
chriseppstein-compass-0.6.4 test/test_helper.rb
chriseppstein-compass-0.6.5 test/test_helper.rb
jsmestad-compass-0.4.2.1 test/test_helper.rb