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

verification_status_enum_spec.rb « commit_signatures « types « graphql « spec - gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
blob: a51f15f2b82e258999d3453c2188211c9a6880f4 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['VerificationStatus'], feature_category: :source_code_management do
  specify { expect(described_class.graphql_name).to eq('VerificationStatus') }

  it 'exposes all signature verification states' do
    expect(described_class.values.keys)
      .to match_array(Enums::CommitSignature.verification_statuses.map { |status| status.first.to_s.upcase })
  end
end