debian-mirror-gitlab/spec/services/packages/debian/generate_distribution_service_spec.rb
2023-04-23 21:23:45 +05:30

22 lines
683 B
Ruby

# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Packages::Debian::GenerateDistributionService, feature_category: :package_registry do
describe '#execute' do
subject { described_class.new(distribution).execute }
let(:subject2) { described_class.new(distribution).execute }
let(:subject3) { described_class.new(distribution).execute }
include_context 'with published Debian package'
[:project, :group].each do |container_type|
context "for #{container_type}" do
include_context 'with Debian distribution', container_type
it_behaves_like 'Generate Debian Distribution and component files'
end
end
end
end