aboutsummaryrefslogtreecommitdiffstats
path: root/lib
diff options
context:
space:
mode:
authorUģis Ozols <ugis.ozolss@gmail.com>2011-11-06 21:28:25 +0200
committerUģis Ozols <ugis.ozolss@gmail.com>2011-11-06 21:28:25 +0200
commitd18364d359359fa6564ad187d7303f8c167154cd (patch)
tree0926354bdaccbf4420b2136de3fc1c8c9effeda5 /lib
parent9936281bb8bff96da4fb4405a9479f277f95efac (diff)
downloadrefinerycms-blog-d18364d359359fa6564ad187d7303f8c167154cd.tar.gz
refinerycms-blog-d18364d359359fa6564ad187d7303f8c167154cd.tar.bz2
refinerycms-blog-d18364d359359fa6564ad187d7303f8c167154cd.zip
Use root menthod to set engine factory path.
Diffstat (limited to 'lib')
-rw-r--r--lib/refinery/blog.rb2
1 files changed, 1 insertions, 1 deletions
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