diff options
author | Stan Hu <stanhu@gmail.com> | 2015-04-13 08:27:45 +0300 |
---|---|---|
committer | Stan Hu <stanhu@gmail.com> | 2015-04-28 06:42:38 +0300 |
commit | 72a7febeada2c58c98caee8bb7ce18886a7c0868 (patch) | |
tree | 22cde467a3b87e93babb526b154003ffad12fef6 /spec/factories | |
parent | 9f443f42578f8f995415f3d0b9aa9ee8aebeff0b (diff) |
Fix "Revspec not found" errors when viewing diffs in a forked project with submodules
Closes #1413
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/projects.rb | 8 |
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( |