compass/test/test_case_helper.rb

14 lines
283 B
Ruby
Raw Normal View History

module Compass
module TestCaseHelper
def absolutize(path)
2011-03-21 16:21:36 +00:00
if Compass::Util.blank?(path)
File.dirname(__FILE__)
elsif path[0] == ?/
"#{File.dirname(__FILE__)}#{path}"
else
"#{File.dirname(__FILE__)}/#{path}"
end
end
end
end