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>2022-08-23 12:09:29 +0300
committerGitLab Bot <gitlab-bot@gitlab.com>2022-08-23 12:09:29 +0300
commit04eb990a846ce03d41d155ab626c220a3e21a823 (patch)
treea78c9b38c87911866d0ed192da7b5466e6659054 /spec/requests/api/suggestions_spec.rb
parent2c9bd42a6707df8bb7ed66f26cc17df8f36a47fa (diff)
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/requests/api/suggestions_spec.rb')
-rw-r--r--spec/requests/api/suggestions_spec.rb15
1 files changed, 7 insertions, 8 deletions
diff --git a/spec/requests/api/suggestions_spec.rb b/spec/requests/api/suggestions_spec.rb
index 7f53d379af5..2393a268693 100644
--- a/spec/requests/api/suggestions_spec.rb
+++ b/spec/requests/api/suggestions_spec.rb
@@ -34,15 +34,14 @@ RSpec.describe API::Suggestions do
end
let(:diff_note2) do
- create(:diff_note_on_merge_request, noteable: merge_request,
- position: position2,
- project: project)
+ create(:diff_note_on_merge_request, noteable: merge_request, position: position2, project: project)
end
let(:suggestion) do
- create(:suggestion, note: diff_note,
- from_content: " raise RuntimeError, \"System commands must be given as an array of strings\"\n",
- to_content: " raise RuntimeError, 'Explosion'\n # explosion?")
+ create(:suggestion,
+ note: diff_note,
+ from_content: " raise RuntimeError, \"System commands must be given as an array of strings\"\n",
+ to_content: " raise RuntimeError, 'Explosion'\n # explosion?")
end
let(:unappliable_suggestion) do
@@ -119,8 +118,8 @@ RSpec.describe API::Suggestions do
describe "PUT /suggestions/batch_apply" do
let(:suggestion2) do
create(:suggestion, note: diff_note2,
- from_content: " \"PWD\" => path\n",
- to_content: " *** FOO ***\n")
+ from_content: " \"PWD\" => path\n",
+ to_content: " *** FOO ***\n")
end
let(:url) { "/suggestions/batch_apply" }