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:
authorgitlabhq <m@gitlabhq.com>2011-11-15 17:51:43 +0400
committergitlabhq <m@gitlabhq.com>2011-11-15 17:51:43 +0400
commit3538ae85003ead7cd2d425b74426dac2accaa72a (patch)
tree93a8f7fe6add4c00f9941572a702462a28765107 /db
parent37346ead30e6f6c610643bb9a8dfa09a567b02a0 (diff)
travis conf
Diffstat (limited to 'db')
-rw-r--r--db/fixtures/test/001_repo.rb4
1 files changed, 4 insertions, 0 deletions
diff --git a/db/fixtures/test/001_repo.rb b/db/fixtures/test/001_repo.rb
index 3eb4c299b4a..fa50f841362 100644
--- a/db/fixtures/test/001_repo.rb
+++ b/db/fixtures/test/001_repo.rb
@@ -1,3 +1,7 @@
+# create tmp dir if not exist
+tmp_dir = File.join(Rails.root, "tmp")
+Dir.mkdir(tmp_dir) unless File.exists?(tmp_dir)
+
# Create dir for test repo
repo_dir = File.join(Rails.root, "tmp", "tests")
Dir.mkdir(repo_dir) unless File.exists?(repo_dir)