summaryrefslogtreecommitdiff
path: root/spec/graphql/types/todo_type_spec.rb
blob: a5ea5bcffb073ad885909bb4b01334a9885f850a (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
# frozen_string_literal: true

require 'spec_helper'

describe GitlabSchema.types['Todo'] do
  it 'has the correct fields' do
    expected_fields = [:id, :project, :group, :author, :action, :target_type, :body, :state, :created_at]

    is_expected.to have_graphql_fields(*expected_fields)
  end

  it { expect(described_class).to require_graphql_authorizations(:read_todo) }
end