Welcome to mirror list, hosted at ThFree Co, Russian Federation.

component_spec.rb « sbom « reports « ci « gitlab « lib « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: 06ea3433ef09f116e9c9c17180f794092bb4e837 (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 'fast_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: attributes[:type],
      name: attributes[:name],
      version: attributes[:version]
    )
  end
end