diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-23 12:47:29 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-30 12:48:40 +0200 |
commit | b9ccc79cb5d67e356edce3778b6a17def985ed22 (patch) | |
tree | 103aacc1d621c7d6436c2ad3a2a52d48dfc395e1 /spec/factories | |
parent | 34431d8ecb1c3d3082c3e391db70b33ca7dbf056 (diff) | |
download | gitlab-ce-b9ccc79cb5d67e356edce3778b6a17def985ed22.tar.gz |
Delegate ci_project parameters to projects
- It delegates name, path, gitlab_url, ssh_url_to_repo
- Remove ability to set this parameters using CI API
This fixes GitLab project rename, namespace change, repository rename, etc.
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/projects.rb | 12 |
1 files changed, 0 insertions, 12 deletions
diff --git a/spec/factories/ci/projects.rb b/spec/factories/ci/projects.rb index d492fe8209e..111e1a82816 100644 --- a/spec/factories/ci/projects.rb +++ b/spec/factories/ci/projects.rb @@ -29,20 +29,8 @@ FactoryGirl.define do factory :ci_project_without_token, class: Ci::Project do - sequence :name do |n| - "GitLab / gitlab-shell#{n}" - end - default_ref 'master' - sequence :path do |n| - "gitlab/gitlab-shell#{n}" - end - - sequence :ssh_url_to_repo do |n| - "git@demo.gitlab.com:gitlab/gitlab-shell#{n}.git" - end - gl_project factory: :empty_project factory :ci_project do |