diff options
author | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 14:52:01 -0400 |
---|---|---|
committer | Robert Speicher <rspeicher@gmail.com> | 2012-09-26 16:32:26 -0400 |
commit | afc4a75499b6678a643e6b62f703f8e7e1eb0f0a (patch) | |
tree | 19855be537491fb2e1f79907e034f8f199915f46 /db | |
parent | 82c3f6260366147803d5f63d575231f77c7e73ce (diff) | |
download | gitlab-ce-afc4a75499b6678a643e6b62f703f8e7e1eb0f0a.tar.gz |
Use Rails.root.join where appropriate
Diffstat (limited to 'db')
-rw-r--r-- | db/fixtures/test/001_repo.rb | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/db/fixtures/test/001_repo.rb b/db/fixtures/test/001_repo.rb index 67d4e7bfbde..18fc37cde0c 100644 --- a/db/fixtures/test/001_repo.rb +++ b/db/fixtures/test/001_repo.rb @@ -3,13 +3,13 @@ require 'fileutils' print "Unpacking seed repository..." SEED_REPO = 'seed_project.tar.gz' -REPO_PATH = File.join(Rails.root, 'tmp', 'repositories') +REPO_PATH = Rails.root.join('tmp', 'repositories') # Make whatever directories we need to make FileUtils.mkdir_p(REPO_PATH) # Copy the archive to the repo path -FileUtils.cp(File.join(Rails.root, 'spec', SEED_REPO), REPO_PATH) +FileUtils.cp(Rails.root.join('spec', SEED_REPO), REPO_PATH) # chdir to the repo path FileUtils.cd(REPO_PATH) do |