diff options
Diffstat (limited to 'spec/services/environments/create_for_job_service_spec.rb')
-rw-r--r-- | spec/services/environments/create_for_job_service_spec.rb | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/spec/services/environments/create_for_job_service_spec.rb b/spec/services/environments/create_for_job_service_spec.rb new file mode 100644 index 00000000000..0d459301f19 --- /dev/null +++ b/spec/services/environments/create_for_job_service_spec.rb @@ -0,0 +1,19 @@ +# frozen_string_literal: true + +require 'spec_helper' + +RSpec.describe Environments::CreateForJobService, feature_category: :continuous_delivery do + let_it_be(:project) { create(:project, :repository) } + let_it_be(:user) { create(:user) } + let_it_be(:pipeline) { create(:ci_pipeline, project: project) } + + let(:service) { described_class.new } + + it_behaves_like 'create environment for job' do + let(:factory_type) { :ci_build } + end + + it_behaves_like 'create environment for job' do + let(:factory_type) { :ci_bridge } + end +end |