Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/db
diff options
context:
space:
mode:
authorRobert Speicher <rspeicher@gmail.com>2012-09-26 22:52:01 +0400
committerRobert Speicher <rspeicher@gmail.com>2012-09-27 00:32:26 +0400
commitafc4a75499b6678a643e6b62f703f8e7e1eb0f0a (patch)
tree19855be537491fb2e1f79907e034f8f199915f46 /db
parent82c3f6260366147803d5f63d575231f77c7e73ce (diff)
Use Rails.root.join where appropriate
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/test/001_repo.rb4
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