2019-10-17 15:06:17 +00:00
|
|
|
# frozen_string_literal: true
|
|
|
|
|
|
|
|
require 'spec_helper'
|
|
|
|
|
2020-06-24 09:08:32 +00:00
|
|
|
RSpec.describe GitlabSchema.types['Todo'] do
|
2019-10-17 15:06:17 +00:00
|
|
|
it 'has the correct fields' do
|
|
|
|
expected_fields = [:id, :project, :group, :author, :action, :target_type, :body, :state, :created_at]
|
|
|
|
|
2020-03-18 18:09:35 +00:00
|
|
|
expect(described_class).to have_graphql_fields(*expected_fields)
|
2019-10-17 15:06:17 +00:00
|
|
|
end
|
|
|
|
|
2020-05-07 06:09:38 +00:00
|
|
|
specify { expect(described_class).to require_graphql_authorizations(:read_todo) }
|
2019-10-17 15:06:17 +00:00
|
|
|
end
|