diff --git a/spec/components/discourse_diff_spec.rb b/spec/components/discourse_diff_spec.rb index b089124e57..b797920b2f 100644 --- a/spec/components/discourse_diff_spec.rb +++ b/spec/components/discourse_diff_spec.rb @@ -60,42 +60,42 @@ describe DiscourseDiff do describe "side_by_side_html" do it "returns two empty divs when no content is diffed" do - expect(DiscourseDiff.new("", "").side_by_side_html).to eq("
") + expect(DiscourseDiff.new("", "").side_by_side_html).to eq("") end it "returns the diffed content on both sides when there is no difference" do before = after = "this is a paragraph
" - expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("this is a paragraph
this is a paragraph
this is a paragraph
this is a paragraph
this is a paragraph
" after = "this is a great paragraph
" - expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("this is a paragraph
this is a great paragraph
this is a paragraph
this is a great paragraph
this is a great paragraph
" after = "this is a paragraph
" - expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("this is a great paragraph
this is a paragraph
this is a great paragraph
this is a paragraph
this is the first paragraph
" after = "this is the first paragraph
this is the second paragraph
" - expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("this is the first paragraph
this is the first paragraph
this is the second paragraph
this is the first paragraph
this is the first paragraph
this is the second paragraph
this is the first paragraph
this is the second paragraph
" after = "this is the second paragraph
" - expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("this is the first paragraph
this is the second paragraph
this is the second paragraph
this is the first paragraph
this is the second paragraph
this is the second paragraph
'
" after = "" - expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("'
'