2020-02-19 00:09:15 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 09:08:32 +00:00
|
|
|
RSpec.describe GitlabSchema.types['Board'] do
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class.graphql_name).to eq('Board') }
|
2020-02-19 00:09:15 +00:00
|
|
|
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class).to require_graphql_authorizations(:read_board) }
|
2020-02-19 00:09:15 +00:00
|
|
|
|
|
|
|
it 'has specific fields' do
|
2021-01-08 00:10:44 +00:00
|
|
|
expected_fields = %w[id name web_url web_path]
|
2020-02-19 00:09:15 +00:00
|
|
|
|
2020-03-18 18:09:35 +00:00
|
|
|
expect(described_class).to include_graphql_fields(*expected_fields)
|
2020-02-19 00:09:15 +00:00
|
|
|
end
|
|
|
|
end
|