From d18364d359359fa6564ad187d7303f8c167154cd Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?U=C4=A3is=20Ozols?= Date: Sun, 6 Nov 2011 21:28:25 +0200 Subject: Use root menthod to set engine factory path. --- lib/refinery/blog.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/refinery/blog.rb b/lib/refinery/blog.rb index 07ed824..78e1bf5 100644 --- a/lib/refinery/blog.rb +++ b/lib/refinery/blog.rb @@ -28,7 +28,7 @@ module Refinery end def factory_paths - @factory_paths ||= [ File.expand_path("../../../spec/factories", __FILE__) ] + @factory_paths ||= [ root.join("spec/factories").to_s ] end end end -- cgit v1.2.3