diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-28 14:14:34 +0300 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2015-09-29 11:47:03 +0300 |
commit | 30c78e70cba395c1336611c58891a75473f8a037 (patch) | |
tree | e061fa88d4c325b9ffefa9783236018bfdc85c9d /spec/factories | |
parent | 1530f68c9876bc8376bf4aa199c8abda570f5214 (diff) |
WIP
Diffstat (limited to 'spec/factories')
-rw-r--r-- | spec/factories/ci/commits.rb | 2 | ||||
-rw-r--r-- | spec/factories/ci/projects.rb | 2 |
2 files changed, 3 insertions, 1 deletions
diff --git a/spec/factories/ci/commits.rb b/spec/factories/ci/commits.rb index 70930c789c3..9c7a0e9cbe0 100644 --- a/spec/factories/ci/commits.rb +++ b/spec/factories/ci/commits.rb @@ -51,6 +51,8 @@ FactoryGirl.define do } end + gl_project factory: :empty_project + factory :ci_commit_without_jobs do after(:create) do |commit, evaluator| commit.push_data[:ci_yaml_file] = YAML.dump({}) diff --git a/spec/factories/ci/projects.rb b/spec/factories/ci/projects.rb index e6bd0685f8d..d492fe8209e 100644 --- a/spec/factories/ci/projects.rb +++ b/spec/factories/ci/projects.rb @@ -43,7 +43,7 @@ FactoryGirl.define do "git@demo.gitlab.com:gitlab/gitlab-shell#{n}.git" end - gl_project factory: :project + gl_project factory: :empty_project factory :ci_project do token 'iPWx6WM4lhHNedGfBpPJNP' |