diff options
Diffstat (limited to 'spec/requests/api/suggestions_spec.rb')
-rw-r--r-- | spec/requests/api/suggestions_spec.rb | 15 |
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" } |