debian-mirror-gitlab/spec/graphql/types/board_type_spec.rb

16 lines
417 B
Ruby
Raw Normal View History

2020-04-08 14:13:33 +05:30
# frozen_string_literal: true
require 'spec_helper'
2020-07-28 23:09:34 +05:30
RSpec.describe GitlabSchema.types['Board'] do
2020-05-24 23:13:21 +05:30
specify { expect(described_class.graphql_name).to eq('Board') }
2020-04-08 14:13:33 +05:30
2020-05-24 23:13:21 +05:30
specify { expect(described_class).to require_graphql_authorizations(:read_board) }
2020-04-08 14:13:33 +05:30
it 'has specific fields' do
2021-03-08 18:12:59 +05:30
expected_fields = %w[id name web_url web_path]
2020-04-08 14:13:33 +05:30
2020-04-22 19:07:51 +05:30
expect(described_class).to include_graphql_fields(*expected_fields)
2020-04-08 14:13:33 +05:30
end
end