diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 12:09:12 +0000 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2020-02-27 12:09:12 +0000 |
commit | 3ab4feda4dce9c9f0672375ae27c2f7c2ba6f4ad (patch) | |
tree | be5a771e0427ed98cdb58acfd5c631b4b2eb4bf9 /spec/controllers | |
parent | c72e5ebe9938d315ec598197873e71a80168d40a (diff) | |
download | gitlab-ce-3ab4feda4dce9c9f0672375ae27c2f7c2ba6f4ad.tar.gz |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r-- | spec/controllers/projects/issues_controller_spec.rb | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/spec/controllers/projects/issues_controller_spec.rb b/spec/controllers/projects/issues_controller_spec.rb index fb4d1cf59fe..806a4e2f52c 100644 --- a/spec/controllers/projects/issues_controller_spec.rb +++ b/spec/controllers/projects/issues_controller_spec.rb @@ -740,16 +740,16 @@ describe Projects::IssuesController do .to log_spam(title: 'Spam title', noteable_type: 'Issue') end - it 'renders recaptcha_html json response' do - update_issue - - expect(json_response).to have_key('recaptcha_html') - end + context 'renders properly' do + render_views - it 'returns 200 status' do - update_issue + it 'renders recaptcha_html json response' do + update_issue - expect(response).to have_gitlab_http_status(:ok) + expect(response).to have_gitlab_http_status(:ok) + expect(json_response).to have_key('recaptcha_html') + expect(json_response['recaptcha_html']).not_to be_empty + end end end |