1
0
Fork 0
mirror of https://github.com/haml/haml.git synced 2022-11-09 12:33:31 -05:00
haml--haml/test/test_helper.rb
2008-06-08 09:54:36 -07:00

16 lines
523 B
Ruby

# allows testing with edge Rails by creating a test/rails symlink
linked_rails = File.dirname(__FILE__) + '/rails'
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
require 'rubygems'
end
require 'action_controller'
require 'action_view'
require 'test/unit'
require File.dirname(__FILE__) + '/../lib/haml'
require File.dirname(__FILE__) + '/../lib/sass'