Welcome to mirror list, hosted at ThFree Co, Russian Federation.

gitlab.com/gitlab-org/gitlab-foss.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'spec/graphql/types/commit_type_spec.rb')
-rw-r--r--spec/graphql/types/commit_type_spec.rb10
1 files changed, 8 insertions, 2 deletions
diff --git a/spec/graphql/types/commit_type_spec.rb b/spec/graphql/types/commit_type_spec.rb
index 561d165148b..6af5ea04dd2 100644
--- a/spec/graphql/types/commit_type_spec.rb
+++ b/spec/graphql/types/commit_type_spec.rb
@@ -12,8 +12,14 @@ RSpec.describe GitlabSchema.types['Commit'] do
it 'contains attributes related to commit' do
expect(described_class).to have_graphql_fields(
:id, :sha, :short_id, :title, :full_title, :full_title_html, :description, :description_html, :message, :title_html, :authored_date,
- :author_name, :author_email, :author_gravatar, :author, :web_url, :web_path,
- :pipelines, :signature_html, :signature
+ :author_name, :author_email, :author_gravatar, :author, :diffs, :web_url, :web_path,
+ :pipelines, :signature_html, :signature, :committer_name, :committer_email, :committed_date
)
end
+
+ describe 'diffs' do
+ it 'limits field call count' do
+ expect(described_class.fields['diffs'].extensions).to include(a_kind_of(::Gitlab::Graphql::Limit::FieldCallCount))
+ end
+ end
end