A platform for community discussion. Free, open, simple.
correct spec regression
Samf3502853fa7d
diff --git a/spec/components/discourse_diff_spec.rb b/spec/components/discourse_diff_spec.rbindex b089124e572..b797920b2f0 100644--- a/spec/components/discourse_diff_spec.rb+++ b/spec/components/discourse_diff_spec.rb@@ -60,42 +60,42 @@ describe DiscourseDiff dodescribe "side_by_side_html" doit "returns two empty divs when no content is diffed" do- expect(DiscourseDiff.new("", "").side_by_side_html).to eq("<div class=\"span8\"></div><div class=\"span8 offset1\"></div>")+ expect(DiscourseDiff.new("", "").side_by_side_html).to eq("<div class=\"revision-content\"></div><div class=\"revision-content\"></div>")endit "returns the diffed content on both sides when there is no difference" dobefore = after = "<p>this is a paragraph</p>"- expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"span8\"><p>this is a paragraph</p></div><div class=\"span8 offset1\"><p>this is a paragraph</p></div>")+ expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"revision-content\"><p>this is a paragraph</p></div><div class=\"revision-content\"><p>this is a paragraph</p></div>")endit "adds <ins> tags around added text on the right div" dobefore = "<p>this is a paragraph</p>"after = "<p>this is a great paragraph</p>"- expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"span8\"><p>this is a paragraph</p></div><div class=\"span8 offset1\"><p>this is a <ins>great </ins>paragraph</p></div>")+ expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"revision-content\"><p>this is a paragraph</p></div><div class=\"revision-content\"><p>this is a <ins>great </ins>paragraph</p></div>")endit "adds <del> tags around removed text on the left div" dobefore = "<p>this is a great paragraph</p>"after = "<p>this is a paragraph</p>"- expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"span8\"><p>this is a <del>great </del>paragraph</p></div><div class=\"span8 offset1\"><p>this is a paragraph</p></div>")+ expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"revision-content\"><p>this is a <del>great </del>paragraph</p></div><div class=\"revision-content\"><p>this is a paragraph</p></div>")endit "adds .diff-ins class when a paragraph is added" dobefore = "<p>this is the first paragraph</p>"after = "<p>this is the first paragraph</p><p>this is the second paragraph</p>"- expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"span8\"><p>this is the first paragraph</p></div><div class=\"span8 offset1\"><p>this is the first paragraph</p><p class=\"diff-ins\">this is the second paragraph</p></div>")+ expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"revision-content\"><p>this is the first paragraph</p></div><div class=\"revision-content\"><p>this is the first paragraph</p><p class=\"diff-ins\">this is the second paragraph</p></div>")endit "adds .diff-del class when a paragraph is removed" dobefore = "<p>this is the first paragraph</p><p>this is the second paragraph</p>"after = "<p>this is the second paragraph</p>"- expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"span8\"><p class=\"diff-del\">this is the first paragraph</p><p>this is the second paragraph</p></div><div class=\"span8 offset1\"><p>this is the second paragraph</p></div>")+ expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"revision-content\"><p class=\"diff-del\">this is the first paragraph</p><p>this is the second paragraph</p></div><div class=\"revision-content\"><p>this is the second paragraph</p></div>")endit "does not break diff on character references" dobefore = "<p>'</p>"after = "<p></p>"- expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"span8\"><p><del>'</del></p></div><div class=\"span8 offset1\"><p></p></div>")+ expect(DiscourseDiff.new(before, after).side_by_side_html).to eq("<div class=\"revision-content\"><p><del>'</del></p></div><div class=\"revision-content\"><p></p></div>")endend