blob: 672117c311f0a242e566bcd2d427bbf522105aa3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
# frozen_string_literal: true
require 'spec_helper'
RSpec.describe Gitlab::Ci::Reports::Sbom::Component do
let(:attributes) do
{
'type' => 'library',
'name' => 'component-name',
'version' => 'v0.0.1'
}
end
subject { described_class.new(attributes) }
it 'has correct attributes' do
expect(subject).to have_attributes(
component_type: 'library',
name: 'component-name',
version: 'v0.0.1'
)
end
end
|