diff options
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 |