spec/docstring_spec.rb in yard-0.6.4 vs spec/docstring_spec.rb in yard-0.6.5
- old
+ new
@@ -299,7 +299,12 @@
it "should warn about unknown tag" do
log.should_receive(:warn).with(/Unknown tag @hello$/)
Docstring.new("@hello world")
end
+
+ it "should not add trailing whitespace to freeform tags" do
+ doc = Docstring.new("@api private \t ")
+ doc.tag(:api).text.should == "private"
+ end
end
end