Use root menthod to set engine factory path.

This commit is contained in:
Uģis Ozols 2011-11-06 21:28:25 +02:00
parent 9936281bb8
commit d18364d359

View file

@ -28,7 +28,7 @@ module Refinery
end end
def factory_paths def factory_paths
@factory_paths ||= [ File.expand_path("../../../spec/factories", __FILE__) ] @factory_paths ||= [ root.join("spec/factories").to_s ]
end end
end end
end end