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
diff options
context:
space:
mode:
authorDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-22 19:57:34 +0400
committerDmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>2013-06-22 19:57:34 +0400
commite45179c9b4d0504def48f00cfe4b97463b090614 (patch)
tree08b9644b3574ba6a0d89f857add312fc28cecba3 /spec/factories.rb
parent248ece76e51014700733727e553a428e2f85579d (diff)
remove useless routing tests. Added symlink creation for project with code
Diffstat (limited to 'spec/factories.rb')
-rw-r--r--spec/factories.rb7
1 files changed, 7 insertions, 0 deletions
diff --git a/spec/factories.rb b/spec/factories.rb
index b596f80fa9e..272623440e1 100644
--- a/spec/factories.rb
+++ b/spec/factories.rb
@@ -36,6 +36,13 @@ FactoryGirl.define do
factory :project_with_code, parent: :project do
path { 'gitlabhq' }
+
+ after :create do |project|
+ repos_path = Rails.root.join('tmp', 'test-git-base-path')
+ seed_repo = Rails.root.join('tmp', 'repositories', 'gitlabhq')
+ target_repo = File.join(repos_path, project.path_with_namespace + '.git')
+ system("ln -s #{seed_repo} #{target_repo}")
+ end
end
factory :group do