haml--haml/test/linked_rails.rb

13 lines
406 B
Ruby
Raw Normal View History

2008-10-27 17:19:52 +00:00
# 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'