diff options
Diffstat (limited to 'spec/factories/commit_statuses.rb')
-rw-r--r-- | spec/factories/commit_statuses.rb | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/spec/factories/commit_statuses.rb b/spec/factories/commit_statuses.rb index fa10b37cdbf..a60f0a3879a 100644 --- a/spec/factories/commit_statuses.rb +++ b/spec/factories/commit_statuses.rb @@ -6,10 +6,10 @@ FactoryBot.define do stage { 'test' } stage_idx { 0 } status { 'success' } - description { 'commit status'} + description { 'commit status' } pipeline factory: :ci_pipeline - started_at { 'Tue, 26 Jan 2016 08:21:42 +0100'} - finished_at { 'Tue, 26 Jan 2016 08:23:42 +0100'} + started_at { 'Tue, 26 Jan 2016 08:21:42 +0100' } + finished_at { 'Tue, 26 Jan 2016 08:23:42 +0100' } trait :success do status { 'success' } @@ -56,12 +56,7 @@ FactoryBot.define do end after(:build) do |build, evaluator| - build.project = build.pipeline.project - end - - factory :generic_commit_status, class: 'GenericCommitStatus' do - name { 'generic' } - description { 'external commit status' } + build.project ||= build.pipeline.project end end end |