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

16 lines
437 B
Ruby
Raw Normal View History

# allows testing with edge Rails by creating a test/rails symlink
vendored_rails = File.dirname(__FILE__) + '/../rails'
if File.exists? vendored_rails
puts "[ using vendored Rails ]"
$:.unshift vendored_rails + '/activesupport/lib'
$:.unshift vendored_rails + '/actionpack/lib'
else
require 'rubygems'
end
require 'action_controller'
require 'action_view'
require 'test/unit'
require File.dirname(__FILE__) + '/../../lib/haml'