2019-02-15 15:39:39 +05:30
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe GitlabSchema.types['Issue'] do
|
|
|
|
it { expect(described_class).to expose_permissions_using(Types::PermissionTypes::Issue) }
|
|
|
|
|
|
|
|
it { expect(described_class.graphql_name).to eq('Issue') }
|
2019-07-07 11:18:12 +05:30
|
|
|
|
|
|
|
it { expect(described_class).to require_graphql_authorizations(:read_issue) }
|
2019-09-04 21:01:54 +05:30
|
|
|
|
|
|
|
it { expect(described_class.interfaces).to include(Types::Notes::NoteableType.to_graphql) }
|
|
|
|
|
|
|
|
it 'has specific fields' do
|
2019-09-30 21:07:59 +05:30
|
|
|
fields = %i[title_html description_html relative_position web_path web_url
|
|
|
|
reference]
|
|
|
|
|
|
|
|
fields.each do |field_name|
|
2019-09-04 21:01:54 +05:30
|
|
|
expect(described_class).to have_graphql_field(field_name)
|
|
|
|
end
|
|
|
|
end
|
2019-02-15 15:39:39 +05:30
|
|
|
end
|