diff options
Diffstat (limited to 'spec/lib/gitlab/ci/parsers/sbom/cyclonedx_spec.rb')
-rw-r--r-- | spec/lib/gitlab/ci/parsers/sbom/cyclonedx_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/lib/gitlab/ci/parsers/sbom/cyclonedx_spec.rb b/spec/lib/gitlab/ci/parsers/sbom/cyclonedx_spec.rb index 431fe9f3591..f3636106b98 100644 --- a/spec/lib/gitlab/ci/parsers/sbom/cyclonedx_spec.rb +++ b/spec/lib/gitlab/ci/parsers/sbom/cyclonedx_spec.rb @@ -102,11 +102,11 @@ RSpec.describe Gitlab::Ci::Parsers::Sbom::Cyclonedx do it 'adds each component, ignoring unused attributes' do expect(report).to receive(:add_component) - .with({ "name" => "activesupport", "version" => "5.1.4", "type" => "library" }) + .with(an_object_having_attributes(name: "activesupport", version: "5.1.4", component_type: "library")) expect(report).to receive(:add_component) - .with({ "name" => "byebug", "version" => "10.0.0", "type" => "library" }) + .with(an_object_having_attributes(name: "byebug", version: "10.0.0", component_type: "library")) expect(report).to receive(:add_component) - .with({ "name" => "minimal-component", "type" => "library" }) + .with(an_object_having_attributes(name: "minimal-component", version: nil, component_type: "library")) parse! end |