Commit 3d6d7117 authored by Thong Kuah's avatar Thong Kuah

Fix false autocorrect

The new method is invoked twice. Only the outer new needs autocorrect.
parent 67f51b6a
...@@ -6,7 +6,7 @@ require "spec_helper" ...@@ -6,7 +6,7 @@ require "spec_helper"
RSpec.describe Gitlab::Email::ReplyParser do RSpec.describe Gitlab::Email::ReplyParser do
describe '#execute' do describe '#execute' do
def test_parse_body(mail_string, params = {}) def test_parse_body(mail_string, params = {})
described_class.new(Mail::Message.new(**mail_string), **params).execute described_class.new(Mail::Message.new(mail_string), **params).execute
end end
it "returns an empty string if the message is blank" do it "returns an empty string if the message is blank" do
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment