fix rubocop failures
This commit is contained in:
parent
f7b0692912
commit
1734124433
|
@ -20,7 +20,10 @@ module Gitlab
|
||||||
end
|
end
|
||||||
|
|
||||||
def filtered_html
|
def filtered_html
|
||||||
@filtered_html ||= (filter_replies!; document.inner_html)
|
@filtered_html ||= begin
|
||||||
|
filter_replies!
|
||||||
|
document.inner_html
|
||||||
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
def filtered_text
|
def filtered_text
|
||||||
|
|
|
@ -209,7 +209,6 @@ describe Gitlab::Email::ReplyParser, lib: true do
|
||||||
|
|
||||||
it "properly renders html-only email from MS Outlook" do
|
it "properly renders html-only email from MS Outlook" do
|
||||||
expect(test_parse_body(fixture_file("emails/outlook_html.eml"))).to eq("Microsoft Outlook 2010")
|
expect(test_parse_body(fixture_file("emails/outlook_html.eml"))).to eq("Microsoft Outlook 2010")
|
||||||
|
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
Loading…
Reference in New Issue