14 lines
283 B
Ruby
14 lines
283 B
Ruby
module Compass
|
|
module TestCaseHelper
|
|
def absolutize(path)
|
|
if Compass::Util.blank?(path)
|
|
File.dirname(__FILE__)
|
|
elsif path[0] == ?/
|
|
"#{File.dirname(__FILE__)}#{path}"
|
|
else
|
|
"#{File.dirname(__FILE__)}/#{path}"
|
|
end
|
|
end
|
|
end
|
|
end
|