summaryrefslogtreecommitdiff
path: root/spec/factories/projects.rb
diff options
context:
space:
mode:
authorStan Hu <stanhu@gmail.com>2015-04-12 22:27:45 -0700
committerStan Hu <stanhu@gmail.com>2015-04-27 20:42:38 -0700
commit72a7febeada2c58c98caee8bb7ce18886a7c0868 (patch)
tree22cde467a3b87e93babb526b154003ffad12fef6 /spec/factories/projects.rb
parent9f443f42578f8f995415f3d0b9aa9ee8aebeff0b (diff)
downloadgitlab-ce-72a7febeada2c58c98caee8bb7ce18886a7c0868.tar.gz
Fix "Revspec not found" errors when viewing diffs in a forked project with submodules
Closes #1413
Diffstat (limited to 'spec/factories/projects.rb')
-rw-r--r--spec/factories/projects.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/factories/projects.rb b/spec/factories/projects.rb
index 0899a7603fc..57fa079d753 100644
--- a/spec/factories/projects.rb
+++ b/spec/factories/projects.rb
@@ -76,6 +76,14 @@ FactoryGirl.define do
end
end
+ factory :forked_project_with_submodules, parent: :empty_project do
+ path { 'forked-gitlabhq' }
+
+ after :create do |project|
+ TestEnv.copy_forked_repo_with_submodules(project)
+ end
+ end
+
factory :redmine_project, parent: :project do
after :create do |project|
project.create_redmine_service(