2008-08-23 17:00:46 +00:00
|
|
|
need_gems = false
|
|
|
|
|
2009-09-03 02:47:01 +00:00
|
|
|
lib_dir = File.expand_path(File.join(File.dirname(__FILE__), '..', 'lib'))
|
|
|
|
$:.unshift(lib_dir) unless $:.include?(lib_dir)
|
2009-10-16 07:57:34 +00:00
|
|
|
test_dir = File.dirname(__FILE__)
|
|
|
|
$:.unshift(test_dir) unless $:.include?(test_dir)
|
2009-09-03 02:47:01 +00:00
|
|
|
|
2008-08-23 17:00:46 +00:00
|
|
|
# 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'
|
2009-05-07 17:24:32 +00:00
|
|
|
require 'sass'
|
2008-08-23 17:00:46 +00:00
|
|
|
else
|
|
|
|
need_gems = true
|
|
|
|
end
|
|
|
|
|
|
|
|
require 'rubygems' if need_gems
|
|
|
|
|
2009-05-19 18:27:29 +00:00
|
|
|
require 'compass'
|
2008-08-23 17:00:46 +00:00
|
|
|
|
|
|
|
require 'test/unit'
|
2009-01-19 15:53:51 +00:00
|
|
|
|
2009-10-16 07:57:34 +00:00
|
|
|
require 'test_case_helper'
|
|
|
|
require 'io_helper'
|
2009-10-26 03:15:31 +00:00
|
|
|
require 'rails_helper'
|
2009-10-16 07:57:34 +00:00
|
|
|
require 'command_line_helper'
|