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:
authorGitLab Bot <gitlab-bot@gitlab.com>2021-05-06 15:10:38 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2021-05-06 15:10:38 +0300
commit25db9c1230f7b54a7337b3d2dfe714478a7d54f0 (patch)
treeb9b8d6494ad4098c52eb029ae6a47d795abf9f5b /spec/graphql
parentc06178d51ad9b8d4ce665047873615facfc9c1c5 (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/graphql')
-rw-r--r--spec/graphql/types/timelog_type_spec.rb10
1 files changed, 9 insertions, 1 deletions
diff --git a/spec/graphql/types/timelog_type_spec.rb b/spec/graphql/types/timelog_type_spec.rb
index 38bd70d5097..791c2fdb046 100644
--- a/spec/graphql/types/timelog_type_spec.rb
+++ b/spec/graphql/types/timelog_type_spec.rb
@@ -3,7 +3,7 @@
require 'spec_helper'
RSpec.describe GitlabSchema.types['Timelog'] do
- let(:fields) { %i[spent_at time_spent user issue note] }
+ let(:fields) { %i[spent_at time_spent user issue merge_request note] }
it { expect(described_class.graphql_name).to eq('Timelog') }
it { expect(described_class).to have_graphql_fields(fields) }
@@ -25,6 +25,14 @@ RSpec.describe GitlabSchema.types['Timelog'] do
end
end
+ describe 'merge_request field' do
+ subject { described_class.fields['mergeRequest'] }
+
+ it 'returns merge_request' do
+ is_expected.to have_graphql_type(Types::MergeRequestType)
+ end
+ end
+
describe 'note field' do
subject { described_class.fields['note'] }