diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
commit | 7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch) | |
tree | 5bdc2229f5198d516781f8d24eace62fc7e589e9 /spec/services/packages/rpm/repository_metadata/base_builder_spec.rb | |
parent | 185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff) |
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'spec/services/packages/rpm/repository_metadata/base_builder_spec.rb')
-rw-r--r-- | spec/services/packages/rpm/repository_metadata/base_builder_spec.rb | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/spec/services/packages/rpm/repository_metadata/base_builder_spec.rb b/spec/services/packages/rpm/repository_metadata/base_builder_spec.rb deleted file mode 100644 index 524c224177b..00000000000 --- a/spec/services/packages/rpm/repository_metadata/base_builder_spec.rb +++ /dev/null @@ -1,33 +0,0 @@ -# frozen_string_literal: true -require 'spec_helper' - -RSpec.describe Packages::Rpm::RepositoryMetadata::BaseBuilder do - describe '#execute' do - subject { described_class.new(xml: xml, data: data).execute } - - let(:xml) { nil } - let(:data) { {} } - - before do - stub_const("#{described_class}::ROOT_TAG", 'test') - stub_const("#{described_class}::ROOT_ATTRIBUTES", { foo1: 'bar1', foo2: 'bar2' }) - end - - it 'generate valid xml' do - result = Nokogiri::XML::Document.parse(subject) - - expect(result.children.count).to eq(1) - expect(result.children.first.attributes.count).to eq(2) - expect(result.children.first.attributes['foo1'].value).to eq('bar1') - expect(result.children.first.attributes['foo2'].value).to eq('bar2') - end - - context 'when call with parameters' do - let(:xml) { 'test' } - - it 'raise NotImplementedError' do - expect { subject }.to raise_error NotImplementedError - end - end - end -end |