Use Rails.root.join where appropriate
This commit is contained in:
parent
82c3f62603
commit
afc4a75499
11 changed files with 17 additions and 17 deletions
|
@ -5,11 +5,11 @@ module StubbedRepository
|
|||
if new_record? || path == 'newproject'
|
||||
# There are a couple Project specs and features that expect the Project's
|
||||
# path to be in the returned path, so let's patronize them.
|
||||
File.join(Rails.root, 'tmp', 'repositories', path)
|
||||
Rails.root.join('tmp', 'repositories', path)
|
||||
else
|
||||
# For everything else, just give it the path to one of our real seeded
|
||||
# repos.
|
||||
File.join(Rails.root, 'tmp', 'repositories', 'gitlabhq')
|
||||
Rails.root.join('tmp', 'repositories', 'gitlabhq')
|
||||
end
|
||||
end
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue