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: cb7ce19c9fc12887e593912aa5bfb00408e9e46f (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# frozen_string_literal: true

require 'spec_helper'

RSpec.describe GitlabSchema.types['VerificationStatus'] 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(%w[
                        UNVERIFIED UNVERIFIED_KEY VERIFIED
                        SAME_USER_DIFFERENT_EMAIL OTHER_USER UNKNOWN_KEY
                        MULTIPLE_SIGNATURES
                      ])
  end
end