test/inch/code_object/docstring_test.rb in inch-0.1.0 vs test/inch/code_object/docstring_test.rb in inch-0.1.1
- old
+ new
@@ -27,10 +27,11 @@
assert docstring.describes_parameter?(:param1)
assert docstring.describes_parameter?(:param2)
assert docstring.describes_parameter?(:param3)
refute docstring.contains_code_example?
assert docstring.mentions_return?
+ assert docstring.describes_return?
end
it "should notice things in tomdoc style docs 2" do
text = <<-DOC
Public: Look up Language by one of its aliases.
@@ -49,10 +50,11 @@
assert docstring.describes_parameter?(:param1)
refute docstring.mentions_parameter?(:alias)
refute docstring.mentions_parameter?(:Look)
assert docstring.contains_code_example?
assert docstring.mentions_return?
+ assert docstring.describes_return?
end
it "should notice things in tomdoc style docs 3" do
text = <<-DOC
Public: Look up Language by one of its aliases.
@@ -71,9 +73,10 @@
assert docstring.describes_parameter?(:param1)
refute docstring.mentions_parameter?(:alias)
refute docstring.mentions_parameter?(:Look)
assert docstring.contains_code_example?
assert docstring.mentions_return?
+ assert docstring.describes_return?
end
#
# PARAMETER MENTIONS