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

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

require 'spec_helper'

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

  it 'contains attributes for SSH keys' do
    expect(described_class).to have_graphql_fields(
      :id, :title, :created_at, :expires_at, :key
    )
  end
end