diff options
| author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-12 12:08:30 +0000 |
|---|---|---|
| committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-12 12:08:30 +0000 |
| commit | cb3b9f9243555b0c26145e2992a9f01f7fa47bf5 (patch) | |
| tree | 5fea3438f0c21330e2fba8c958cbc505810ab990 /spec/services | |
| parent | 71d34aac9a0fae0507c265929767422391816b01 (diff) | |
| download | gitlab-ce-cb3b9f9243555b0c26145e2992a9f01f7fa47bf5.tar.gz | |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/services')
| -rw-r--r-- | spec/services/environments/stop_service_spec.rb | 12 | ||||
| -rw-r--r-- | spec/services/issues/create_service_spec.rb | 8 |
2 files changed, 8 insertions, 12 deletions
diff --git a/spec/services/environments/stop_service_spec.rb b/spec/services/environments/stop_service_spec.rb index 6cfbd765785..afbc0ba70f9 100644 --- a/spec/services/environments/stop_service_spec.rb +++ b/spec/services/environments/stop_service_spec.rb @@ -223,18 +223,6 @@ RSpec.describe Environments::StopService do expect(prepare_staging_job.persisted_environment.state).to eq('available') end - - context 'when fix_related_environments_for_merge_requests feature flag is disabled' do - before do - stub_feature_flags(fix_related_environments_for_merge_requests: false) - end - - it 'stops unrelated environments too' do - subject - - expect(prepare_staging_job.persisted_environment.state).to eq('stopped') - end - end end end diff --git a/spec/services/issues/create_service_spec.rb b/spec/services/issues/create_service_spec.rb index 6b7b72d83fc..3934ca04a00 100644 --- a/spec/services/issues/create_service_spec.rb +++ b/spec/services/issues/create_service_spec.rb @@ -47,6 +47,14 @@ RSpec.describe Issues::CreateService do due_date: Date.tomorrow } end + it 'works if base work item types were not created yet' do + WorkItems::Type.delete_all + + expect do + issue + end.to change(Issue, :count).by(1) + end + it 'creates the issue with the given params' do expect(Issuable::CommonSystemNotesService).to receive_message_chain(:new, :execute) |
