diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-08 00:10:07 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-08-08 00:10:07 +0300 |
commit | db73de5d6de44f995179f04517bc91b041eb10d3 (patch) | |
tree | e1e903120e39dc618aeb6e3ed7540c4bb62b8fff /spec/requests | |
parent | 5edd0d173ff0bc377348bf3585fa309eee783e32 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests')
-rw-r--r-- | spec/requests/api/graphql/mutations/issues/set_due_date_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/requests/api/graphql/mutations/issues/set_due_date_spec.rb b/spec/requests/api/graphql/mutations/issues/set_due_date_spec.rb index 3dd1225db5a..b3c9b9d4995 100644 --- a/spec/requests/api/graphql/mutations/issues/set_due_date_spec.rb +++ b/spec/requests/api/graphql/mutations/issues/set_due_date_spec.rb @@ -49,13 +49,13 @@ RSpec.describe 'Setting Due Date of an issue' do expect(mutation_response['issue']['dueDate']).to eq(2.days.since.to_date.to_s) end - context 'when passing due date without a date value' do + context 'when the due date value is not a valid time' do let(:input) { { due_date: 'test' } } - it 'returns internal server error' do + it 'returns a coercion error' do post_graphql_mutation(mutation, current_user: current_user) - expect(graphql_errors).to include(a_hash_including('message' => 'Internal server error')) + expect(graphql_errors).to include(a_hash_including('message' => /provided invalid value for dueDate/)) end end end |