spec/docstring_spec.rb in yard-0.9.0 vs spec/docstring_spec.rb in yard-0.9.1
- old
+ new
@@ -50,17 +50,12 @@
it "handles multiple calls" do
o1 = Docstring.new("Hello. world")
5.times { expect(o1.summary).to eq "Hello." }
end
- it "strips HTML before summarizing" do
- doc = Docstring.new("<p>Hello <b>world</b></p>.")
- expect(doc.summary).to eq 'Hello world.'
- end
-
it "strips newlines in first paragraph before summarizing" do
doc = Docstring.new("Foo\n<code>==</code> bar.")
- expect(doc.summary).to eq 'Foo == bar.'
+ expect(doc.summary).to eq 'Foo <code>==</code> bar.'
end
it "returns the first sentence" do
o = Docstring.new("DOCSTRING. Another sentence")
expect(o.summary).to eq "DOCSTRING."