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>2020-02-27 15:09:12 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2020-02-27 15:09:12 +0300
commit3ab4feda4dce9c9f0672375ae27c2f7c2ba6f4ad (patch)
treebe5a771e0427ed98cdb58acfd5c631b4b2eb4bf9 /spec/controllers
parentc72e5ebe9938d315ec598197873e71a80168d40a (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/controllers')
-rw-r--r--spec/controllers/projects/issues_controller_spec.rb16
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