Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorShinya Maeda <shinya@gitlab.com>2019-06-11 14:03:40 +0300
committerShinya Maeda <shinya@gitlab.com>2019-06-11 14:03:40 +0300
commit7ac5dfc1e9ef4d4e3eb3ae04f6349cfe48a22e8d (patch)
tree166d4e0750e4fad2eb8f44dcf576ba42614df3e6 /spec/services/ci/pipeline_schedule_service_spec.rb
parentc327d02bd2e0e6b96c3c8448e043040914590b4d (diff)
Fix pipeline schedule when owner is nil
Fixing the bug
Diffstat (limited to 'spec/services/ci/pipeline_schedule_service_spec.rb')
-rw-r--r--spec/services/ci/pipeline_schedule_service_spec.rb8
1 files changed, 8 insertions, 0 deletions
diff --git a/spec/services/ci/pipeline_schedule_service_spec.rb b/spec/services/ci/pipeline_schedule_service_spec.rb
index f2ac53cb25a..867ed0acc0d 100644
--- a/spec/services/ci/pipeline_schedule_service_spec.rb
+++ b/spec/services/ci/pipeline_schedule_service_spec.rb
@@ -24,5 +24,13 @@ describe Ci::PipelineScheduleService do
subject
end
+
+ context 'when owner is nil' do
+ let(:schedule) { create(:ci_pipeline_schedule, project: project, owner: nil) }
+
+ it 'does not raise an error' do
+ expect { subject }.not_to raise_error
+ end
+ end
end
end