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

26 lines
544 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
2021-04-17 20:07:23 +05:30
specify { expect(described_class).to require_graphql_authorizations(:read_issue_board) }
2020-04-08 14:13:33 +05:30
it 'has specific fields' do
2021-04-29 21:17:54 +05:30
expected_fields = %w[
id
name
hideBacklogList
hideClosedList
createdAt
updatedAt
lists
webPath
webUrl
]
2020-04-08 14:13:33 +05:30
2021-04-29 21:17:54 +05:30
expect(described_class).to have_graphql_fields(*expected_fields).at_least
2020-04-08 14:13:33 +05:30
end
end