Sha256: 4619cbc210f61b43e869642e1129aa8b4b5f13f2385434aa57a46ff496a7d962

Contents?: true

Size: 1.04 KB

Versions: 10

Compression:

Stored size: 1.04 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'
  require 'sass'
else
  need_gems = true
end

require 'rubygems' if need_gems

require 'action_controller'
require 'action_view'


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

10 entries across 10 versions & 1 rubygems

Version Path
chriseppstein-compass-0.6.10 test/test_helper.rb
chriseppstein-compass-0.6.11 test/test_helper.rb
chriseppstein-compass-0.6.12 test/test_helper.rb
chriseppstein-compass-0.6.13 test/test_helper.rb
chriseppstein-compass-0.6.14 test/test_helper.rb
chriseppstein-compass-0.6.15 test/test_helper.rb
chriseppstein-compass-0.6.6 test/test_helper.rb
chriseppstein-compass-0.6.7 test/test_helper.rb
chriseppstein-compass-0.6.8 test/test_helper.rb
chriseppstein-compass-0.6.9 test/test_helper.rb