Use root menthod to set engine factory path.
This commit is contained in:
parent
9936281bb8
commit
d18364d359
1 changed files with 1 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue