diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-11 09:10:11 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-08-11 09:10:11 +0300 |
commit | 0852a74a60390025793a4d688826d18016612e1e (patch) | |
tree | e559b434b2d80d214e39fd16bc5394de75881394 /spec/models | |
parent | cf127374b5f72c00426acad9f2432064eeb1f1e3 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/models')
-rw-r--r-- | spec/models/packages/dependency_spec.rb | 13 |
1 files changed, 0 insertions, 13 deletions
diff --git a/spec/models/packages/dependency_spec.rb b/spec/models/packages/dependency_spec.rb index 56475e71359..9918a2bdb14 100644 --- a/spec/models/packages/dependency_spec.rb +++ b/spec/models/packages/dependency_spec.rb @@ -18,19 +18,6 @@ RSpec.describe Packages::Dependency, type: :model, feature_category: :package_re it { is_expected.to validate_uniqueness_of(:name).scoped_to(:version_pattern) } end - describe '.with_packages' do - subject { described_class.with_packages(packages) } - - let_it_be(:package) { create(:package) } - let_it_be(:dependency_link) { create(:packages_dependency_link) } - - let(:package_with_dependency) { dependency_link.package } - let(:dependency) { dependency_link.dependency } - let(:packages) { Packages::Package.where(id: [package, package_with_dependency]) } - - it { is_expected.to contain_exactly(dependency) } - end - describe '.ids_for_package_names_and_version_patterns' do let_it_be(:package_dependency1) { create(:packages_dependency, name: 'foo', version_pattern: '~1.0.0') } let_it_be(:package_dependency2) { create(:packages_dependency, name: 'bar', version_pattern: '~2.5.0') } |